naame_key = input("what is youre name?")
password = input("what is youre password ---{}--- ".format(naame_key))
source.update({naame_key:password})
i_d = id(naame_key)
message = input("waht is youre message ?")
messagee.update({i_d : message})
finish = input("is anmy one wnat to save secure message ? y/n")
if finish.lower() =="y":
continue
elif finish.lower()=="n":
break
while True:
v = input("do u want to see youre secure message ? y/n")
if v.lower() == "y":
user = input("ok please tell me youre username ? ")
if user not in source.keys():
print("youre username didnt match !")
else:
password = input("ok {} plesae give me youre password ? ".format(user))
if source[user] !=password:
print("youre pass is incorrect! try again")
else:
print("ok {} youre message is :".format(user))
c = id(user)
print(messagee[c])
Please format the code you posted, by wrapping it in triple backticks. -> `
Обсуждают сегодня