123456789101112131415161718192021222324 |
- #Write your code below this line 👇
- def prime_checker(number):
- indicate_strings = [
- "It's a prime number.",
- "It's not a prime number."
- ]
- is_prime = True
- for i in range(2, number):
- if number % i == 0:
- is_prime = False
- if is_prime:
- print(indicate_strings[0])
- else:
- print(indicate_strings[1])
- #Write your code above this line 👆
- #Do NOT change any of the code below👇
- n = int(input("Check this number: "))
- prime_checker(number=n)
|