Help needed for school homework… /u/PureAccountant7952 Python Education

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] 

Leave a Reply

Your email address will not be published. Required fields are marked *