Oct-11-2018, 05:22 PM
(This post was last modified: Oct-11-2018, 05:23 PM by erfanakbari1.)
Hey guys , I have been programming to complete this basic challenge and I'm facing an error . i don't know what i have to do in this . I'm thankful if you could help me .
This is my programme :
if (age >= 18) and (age <= 31):
^
SyntaxError: invalid syntax
What should i do ?
This is my programme :
name = input("Please enter your name: ") age = int(input("Please enter your age: ") if (age >= 18) and (age <= 31): print( 'Welcome to our party{0}'.format( name ) ) else: print("We apologize you , you do not have the permission to enter this party because of your __AGE__")Then i got this error massage :
if (age >= 18) and (age <= 31):
^
SyntaxError: invalid syntax
What should i do ?