What is wrong in the else statement ? Code in description
register = {"Aditya":{"Maths1":30,"Maths2":30,"Science1":30,"Science2":30,"History":30,"Geography":30,"Hindi":30,"English":30},"Atharva":{"Maths1":30,"Maths2":30,"Science1":30,"Science2":30,"History":30,"Geography":30,"Hindi":30,"English":30},"Amir":{"Maths1":30,"Maths2":30,"Science1":30,"Science2":30,"History":30,"Geography":30,"Hindi":30,"English":30},"Tanishq":{"Maths1":30,"Maths2":30,"Science1":30,"Science2":30,"History":30,"Geography":30,"Hindi":30,"English":30},"Ratan":{"Maths1":30,"Maths2":30,"Science1":30,"Science2":30,"History":30,"Geography":30,"Hindi":30,"English":30},"Samyak":{"Maths1":30,"Maths2":30,"Science1":30,"Science2":30,"History":30,"Geography":30,"Hindi":30,"English":30},"Varun":{"Maths1":30,"Maths2":30,"Science1":30,"Science2":30,"History":30,"Geography":30,"Hindi":30,"English":30}} a = str(input("Name\n")) b = str(input("Subject\n")) if b == "ALL" or "all" : print(register[a]) else : print(register[a][b]) output :- File "source_file.py", line 9 else : ^ SyntaxE