+ 2
Plz help me with my buggy code ! While loops and operators. Python. Im coding in pycharm on pc this is the buggy part.
4 Answers
+ 6
Try this:
while True:
x = input("Insert your answer here: ")
if x == "2":
print("Correct!")
break
print("Your answer is incorrect")
+ 3
def i():
x = input("insert your answer here: ")
print(x)
while (x != '2'):
x = input("plz try again: ")
print(x)
if ( x == '2'):
print("Your correct")
i()
+ 1
Tnx guys I will try this
+ 1
Thnx @ kuba your a genius mate !