Question 9:
Create an is prime Boolean function that takes an integer number as an argument and returns true if the argument is a prime number and false otherwise. Save your function in a separate module as myPrimeDetector.py. Import your module here and use the is_prime function in your program so that it prompts the user for a number and then displays a message indicating whether the number is prime or not.
Students succeed in their courses by connecting and communicating with an expert until they receive help on their questions
Consult our trusted tutors.