For loops | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

For loops

Hello! Here is my code: n = int(input()) for i in range(1, n+1): for j in range(1, i+1): print(j) My expectations: 1 12 123 12345 Please help if possible!

22nd May 2021, 5:58 PM
Ailana
Ailana - avatar
1 Answer
+ 3
i should make a copy 🤔
22nd May 2021, 6:24 PM
tooselfish
tooselfish - avatar