Computer Science, asked by naveen616, 6 months ago

Why is it showing invalid syntax in the following python program?

fun = {}
class Naveen:
def login_id(self,email,password):
email = input('enter your mail : ')
password = input('enter your password ; ')
fun[email]=password
print(fun)

class other(Naveen):
for key in fun:
print("your email : "+ str(key) + "\nYour password generated : "+str(fun[key])



object_name = Naveen()
object_name.login_id(email,password)

Answers

Answered by Anonymous
4

Answer:

An invalid syntax error means that there is a line that python doesn't know what to do with. The last common type of syntax error you will likely encounter has to do with indention. You may see unindent does not match any outer indention level unexpected indent.

Similar questions