How do i get this output:
A
B B
C C C
D D D D
E E E E E
after getting this:
[‘A’]
[‘B’, ‘B’]
[‘C’, ‘C’, ‘C’]
[‘D’, ‘D’, ‘D’, ‘D’]
[‘E’, ‘E’, ‘E’, ‘E’, ‘E’]
while this is my code:
for i in range(5): meow = list[i:i+1] i+=1 print(meow*i, sep = " ")
submitted by /u/PureAccountant7952
[link] [comments]
r/learnpython How do i get this output: A B B C C C D D D D E E E E E after getting this: [‘A’] [‘B’, ‘B’] [‘C’, ‘C’, ‘C’] [‘D’, ‘D’, ‘D’, ‘D’] [‘E’, ‘E’, ‘E’, ‘E’, ‘E’] while this is my code: for i in range(5): meow = list[i:i+1] i+=1 print(meow*i, sep = ” “) submitted by /u/PureAccountant7952 [link] [comments]
How do i get this output:
A
B B
C C C
D D D D
E E E E E
after getting this:
[‘A’]
[‘B’, ‘B’]
[‘C’, ‘C’, ‘C’]
[‘D’, ‘D’, ‘D’, ‘D’]
[‘E’, ‘E’, ‘E’, ‘E’, ‘E’]
while this is my code:
for i in range(5): meow = list[i:i+1] i+=1 print(meow*i, sep = " ")
submitted by /u/PureAccountant7952
[link] [comments]