0

How would I use a nested for loop to have this output?

1 2 4 8 2 4 8 16 4 8 16 32 8 16 32 64 for i in range(4): for j in range(1,4): print(??, end=\t) print()

26th Mar 2020, 7:35 PM
Dorito Speed
Dorito Speed - avatar
4 ответов
+ 1
Solution: for i in range(0, 4): for j in range(i, i+4): print(2**j, end=' ') print()
26th Mar 2020, 8:05 PM
Ore
Ore - avatar
+ 1
Where is your attempt?
26th Mar 2020, 7:39 PM
Ore
Ore - avatar
0
for i in range(4): for j in range(1,4): print(??, end=\t) print() That's what I have so far
26th Mar 2020, 7:41 PM
Dorito Speed
Dorito Speed - avatar
0
Thanks!
26th Mar 2020, 9:35 PM
Dorito Speed
Dorito Speed - avatar