jeudi 22 janvier 2015

Nested one-liner loops [Python 3] [duplicate]


This question already has an answer here:




I know how to write one-liner loops, with one loop, such as

for x in range(0,10): print(x)

But I want something like

for x in range(0,10): if 1==1: print(x)

However, this returns an error. How could I fix that?


Aucun commentaire:

Enregistrer un commentaire