Python Medium 1
š§ Code Challenge
def is_prime(number):
if number < 2:
return False
for i in range(2, int(number ** 0.5) + 1):
if number % i == 0:
return False
return True
for num in range(1, 11):
if is_prime(num):
print(f"{num} is a prime number")
else:
print(f"{num} is not a prime number")
Explain what this function does. Speak clearly and use keywords.