Convert the following while loop into for loop char = ""
Convert the following while loop into for loop
char = ""
print “Press Tab Enter to stop ...”
iteration = 0
while not char == “\t” and not iteration > 99:
print “Continue?”
char = raw_input()
iteration+ = 1
4 views
1 Answers
char = ""
print “Press Tab Enter to stop ...”
for iteration in range(99):
if not char == ‘\t’:
print “Continue?”
char = raw_input()
4 views
Answered