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?
Flag=1
while(Flag):
  n = int(input("Enter a number: "))
  if(n%2==0):
    print("IN")
  else:
    print("OUT")
  Flag = int(input("Press 1 to continue or 0 to QUIT: ")) Â
Comments
Leave a comment