module 2 assignment 7 th question

a =“123”

for i in range(1,4):

for j in range(i):

print(i,end="")

print()

output -

1

22

333

please help me

module 2 assignment 7 th question

a =“123”

for i in range(1,4):

for j in range(i):

print(i,end="")

print()

output -

1

22

333

please help me

1 Like

for i in range(1,5):

for j in range(i):

print(j,end="")

print()

output

0

01

012

0123

what is wrong with the program ?

why doesn’t it starting from 1