+ 1
Hey guys
I have created a program in Python which will give the information about THANOS when we enter the correct answer of one question In the output menu everything is fine it also asks about the weapon and we can enter the answer but I want such a code that the name of weapon should be fixed and if user enters wrong answr the info shall not be shown how do I do that
2 ответов
+ 9
a = input('Question?\n')
if a == "Answer":
print("Thanos")
else:
print("Wrong")
0
No you didn't get that suppose I enter the name of enemy as thanos and name of friend as marvel so weapon name should be marthan or thanmar