def main(): #These are the two options available print ("1: register") print("2: login") signIn = int(input("Do you have an existing account? 1 or 2?")) #yes = Y #no = N if signIn == 2: existingUser() elif signIn ==1: newUser() main() existingUser(): print ("signin") newUser(): print ("new user")#Message - the script above will not allow me to progress as when I run, it comes up with a syntax error when I try to call the existingUser or newUser module. I cannot see the syntax error.
when calling module comes up with syntax error
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
POST Syntax error | amplay | 0 | 624 |
Aug-07-2024, 02:43 PM Last Post: amplay |
|
is this really a syntax error? | Skaperen | 4 | 1,580 |
May-25-2024, 07:31 AM Last Post: snippsat |
|
World Clock syntax error | OscarBoots | 1 | 1,071 |
May-03-2024, 05:20 AM Last Post: snippsat |
|
Syntax error for "root = Tk()" | dlwaddel | 15 | 6,111 |
Jan-29-2024, 12:07 AM Last Post: dlwaddel |
|
![]() |
SYNTAX ERROR | Yannko | 3 | 1,264 |
Jan-19-2024, 01:20 PM Last Post: rob101 |
Syntax error while executing the Python code in Linux | DivAsh | 8 | 4,679 |
Jul-19-2023, 06:27 PM Last Post: Lahearle |
|
Code is returning the incorrect values. syntax error | 007sonic | 6 | 2,909 |
Jun-19-2023, 03:35 AM Last Post: 007sonic |
|
pyscript index error while calling input from html form | pyscript_dude | 2 | 1,895 |
May-21-2023, 08:17 AM Last Post: snippsat |
|
syntax error question - string | mgallotti | 5 | 2,596 |
Feb-03-2023, 05:10 PM Last Post: mgallotti |
|
Syntax error? I don't see it | KenHorse | 4 | 2,670 |
Jan-15-2023, 07:49 PM Last Post: Gribouillis |
Users browsing this thread: 1 Guest(s)