Hi there, I know there are some changes between Python 2x and 3x, and I know this is probably due to the changes with how 3x handles unicode and binary but I dont know how to make it work properly in 3x.
In 3x my code returns the value I enter, in 2x the code works properly and returns MOO or Cluck Cluck! properly when i select 1 or 2. How do I get this to work in 3x as well?
import os def question(): os.system('CLS') print ("Make your selection\n\n1 - Cows\n2 - Chickens\n") answer = input("> ") return answer def cluck(): print ("cluck cluck cluck") def moo(): print ("mooooooooooooOOO") x = question() if x == 1: moo() elif x == 2: cluck() else: print(x)