print("age restriction")
age=int(input("pls enter your age:"))
if age<=18:
print("access restricted for users below 19")
else:
print("access granted")
print("enter your name")
name1=(input("enter name: "))
print("welcome",name1)
access=int(input("if you already signed up press 1 , if you are a new user press 2")
if access=1:
username=(input("enter username"))
access=(input("enter pswd"))
print("welcome",username)
else:
print("go to link and pls register")
input("press any key to exit")
Invalid syntax error popup is displayed in 2nd if statement when i am trying to run this programe
pls help me out asap i have just stared to learn programming
thankyou
age=int(input("pls enter your age:"))
if age<=18:
print("access restricted for users below 19")
else:
print("access granted")
print("enter your name")
name1=(input("enter name: "))
print("welcome",name1)
access=int(input("if you already signed up press 1 , if you are a new user press 2")
if access=1:
username=(input("enter username"))
access=(input("enter pswd"))
print("welcome",username)
else:
print("go to link and pls register")
input("press any key to exit")
Invalid syntax error popup is displayed in 2nd if statement when i am trying to run this programe
pls help me out asap i have just stared to learn programming
thankyou