[Tutor] Question about if functions

Mimi Ou Yang mimiouyang at hotmail.com
Fri Aug 22 04:43:20 CEST 2014


name = input("Enter your name: )




age = input("Enter your age: )




age = int(age)




if (name and age == jimmy and 35):
    print ("BLABLABLABLABLABLAB") 





how can I make a code that has the same effect has the code that I wrote even though it isn’t a real working code. I hope you understand this code. Basically, it asks you your name and age. And then, if (the name input and the age input) ==  (jimmy and 35):

it prints blablablablablabl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20140822/a8bab36a/attachment.html>


More information about the Tutor mailing list