Answer to Question #220640 in Python for abrar

Question #220640

write a program that keeps taking input(integers)until the user enters-1(use while or do-while loop) in python loop


1
Expert's answer
2021-07-28T02:59:49-0400
i=0
while i != 1:
    i = int(input("enter an integer"))

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS