logo CodeStepByStep logo

divisible_by_6

Language/Type: Python errors if/else input

The following code contains a logic error. Examine the code and figure out the case(s) in which the code would print something that is untrue about the number that was entered. Then correct the logic error in the code. You should retain the original printed messages (and not add any new ones), but make them print at appropriate times such that the message printed is always a true statement about the integer typed.

Bare code: Write a fragment of Python code as described, without any class or function/method heading around your code.

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.