On 8/23/2014 7:16 AM, Mimi Ou Yang wrote:
age = input("K")age = int(age) if (age == 1) or (age == 2) or (age == 3) or (age == 4): print ("LOL") else: print ("K") Is there a shorter way to do this program???
print ('LOL','K')[int(input("k"))>4] _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor