[Tutor] Shorter way for a little program

Mimi Ou Yang mimiouyang at hotmail.com
Sat Aug 23 16:16:11 CEST 2014


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???
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20140823/1063c6b7/attachment.html>


More information about the Tutor mailing list