Posts by André Costa • 73 points
1 post
-
7
votes3
answers1292
viewsQ: How to loop 'for' in 1 line?
The following code did not work: rank = [1, 2, 3, 4] print(rank[c] for c in range(4)) If you can make use of for in a row would like to know.
1 post
7
votes3
answers1292
viewsThe following code did not work: rank = [1, 2, 3, 4] print(rank[c] for c in range(4)) If you can make use of for in a row would like to know.