Answer to Question #257095 in Python for Elen

Question #257095

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
2021-10-27T00:47:49-0400


SAMPLE CODE FOR THE ABOVE QUESTION


#declare a variable to take in an integer from the user
my_integer_number = int(input("Enter an integer: "))
#Check if the integer entered is even or odd
if my_integer_number%2==0:
    #if the number is even the team scores
    print("\nIn")
else:
    #if the number is odd
    print("\nOut")



SAMPLE PROGRAM OUTPUTS



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
New on Blog
APPROVED BY CLIENTS