1.

Convert the following while loop into for loopchar = ""print “Press Tab Enter to stop ...”iteration = 0while not char == “\t” and not iteration > 99:print “Continue?”char = raw_input()iteration+ = 1

Answer»

char = ""

print “Press Tab Enter to stop ...”

for iteration in range(99):

if not char == ‘\t’:

print “Continue?”

char = raw_input()



Discussion

No Comment Found