File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
lesson_04/joneemckellar_04 Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -28,11 +28,11 @@ def is_prime(number):
2828 return False # Found a divisor, so it's not prime
2929 return True # No divisors found, it's prime
3030
31+
3132# Example usage:
32- # You can uncomment these lines and run the file to see the output
33- # print(f"Is 7 prime? {is_prime(7)}")
34- # print(f"Is 10 prime? {is_prime(10)}")
35- # print(f"Is 2 prime? {is_prime(2)}")
36- # print(f"Is 1 prime? {is_prime(1)}")
37- # print(f"Is 13 prime? {is_prime(13)}")
38- # print(f"Is 49 prime? {is_prime(49)}")
33+ print (f"Is 7 prime? { is_prime (7 )} " )
34+ print (f"Is 10 prime? { is_prime (10 )} " )
35+ print (f"Is 2 prime? { is_prime (2 )} " )
36+ print (f"Is 1 prime? { is_prime (1 )} " )
37+ print (f"Is 13 prime? { is_prime (13 )} " )
38+ print (f"Is 49 prime? { is_prime (49 )} " )
You can’t perform that action at this time.
0 commit comments