+ 1
Can anybody please tell me why i am getting an error. Please correct my code. Thank you in advance
9 Antworten
+ 2
don't use a break here
+ 11
y=input("Enter something")
#break cannot be used outside loop
+ 6
kevin thomas just make the == to !=
+ 4
y = int(input("to get started press 1\notherwise press 0 to exit"))
if y == 0:
print('exiting ')
# break
else :
print("You can Continue now")
+ 2
you can use exit() to stop your program
+ 1
can u show me the correct code please
+ 1
then what can I use to stop the program
+ 1
thank you
0
you are welcome