Answer to Question #345747 in Python for Elle

Question #345747

3. In or Out


I'm quite into games now, so how about we play In or Out! When a given number is even, the team scores so we shall print "In", but if it's not an even number, then we print "Out". Simple, right?


Now let's get this game started.


Input

A line containing an integer.

35

Output

A line containing a string.

Out
1
Expert's answer
2022-05-30T15:16:00-0400
a = int(input("Enter the number: "))
if a % 2 == 0:
    print("In")
else:
    print("Out")

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS