On Fri, Aug 22, 2014 at 02:43:20AM +, Mimi Ou Yang wrote:
> if (name and age == jimmy and 35):
> print ("BLABLABLABLABLABLAB")
if name == 'jimmy' and age == 35:
print("BLAB")
or if you prefer:
if (name, age) == ("jimmy", 35):
print("BLAB")
Take careful note that strings like "
On 22/08/14 03:43, Mimi Ou Yang wrote:
name = input("Enter your name: )
age = input("Enter your age: )
age = int(age)
if (name and age == jimmy and 35):
print ("BLABLABLABLABLABLAB")
There are two problems here.
First You need to put quote signs around 'jimmy'
since its a literal string,
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 unders