write a python program that keeps on asking for an input from the user until user enters -1 and when -1 is entered then program stops by printing “Hey, -1 is entered so program ends”. p
Answers
Answered by
0
Answer:
x=True
while x:
num=str(input("Enter a number:"))
if num=="-1":
print("hey, -1 is entered so program ends. ")
break
else:
continue
Similar questions