Ask coding questions

← Back to all posts
Can ANYONE PLZZ HELP ME OUT ON HOW TO SOLVEYHE ERROR AT LINE 35 PLZZZZ. IT'S FOR MY SCHOOL
AANANDsGAMING

ef login():
import sys
login_d={"Nikhil":"[email protected]","Priyanshu":"[email protected]","Aanand":"[email protected]"}
print("""


*""")
while True:
print("""
=======================================
1. Login
2. Register
3.Exit
=======================================""")
choice=int(input("Enter your choice:"))
if choice==1:
id=input("Enter user id:")
if id in login_d:
pwd=input("Enter password:")
if pwd==login_d[id]:
print("Login successful")
mainmenu()
else:
print("Invalid Password")
sys.exit()
else:
print("""**INVALID USER ID***""")
sys.exit()
else:
print("Inalid Input")
sys.exit()

def mainmenu():
import sys

def submenu():
print("1. Submenu1")
print("2. Back to main menu")
choice=int(input("Read Input"))
if (choice==1):
submenu()
if choice==2:
mainmenu()

THIS IS THE CODE JUST IN CASE PLZZ HELP

Voters
AANANDsGAMING
Comments
hotnewtop
VulcanWM

The indentation doesn’t match the rest of the text.
Indent line 31 by 1 tab
Indent line 35 - 40 by 1 tab
Indent line 42 by 2 tabs
Indent line 43 by 1 tab