i = 2 while i < 14: print(i)
думал как та так
a=[2] for i in a: if i<=2: print(i)
i = 2 while i < 14: print(i)
a=[2] for i in a: if i<=2: print(i)
for i in a: a.append(i) print(i)
def itera(): while 1: yield 2 for i in itera(): print(i)
while True: print('ololo')
ZerGнадо туже задачу решить через цикл фор
Чото не понял вопрос
from itertools import takewhile, count for i in takewhile(lambda x : not thereIsAReasonToBreak(x), count()): pass # or something else
i = 0 while i < 100: print('{0}: {1:5}'.format(i, i**100)) i += 1
L = list(range(0, 100)) for i in L: print('{0}: {1:5}'.format(i, i**100))