Question: PYTHON 3.6 -I keep on getting error. I'm trying to show that a number that is entered if it is divisible by 2 and 3

PYTHON 3.6 -I keep on getting error. I'm trying to show that a number that is entered if it is divisible by 2 and 3 , then the program mentions that.

PYTHON 3.6 -I keep on getting error. I'm trying to show that

ne.py PychaMProjectS-Lo7 def even (): x = int (input ("Enter a number: ")) if(x%2== 0): return " Divisible by 2") while True: if (xS 3 return ("Divisible by 2 and 3") else: return ("Not divisible by 2 or 3") print (even ) Run: uppercase the /Library/Frameworks/Python.framework/Versions/3.6/bin/pyt Enter a number: 6 Divisible by 2 Process finished with exit code 0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!