Computer Science, asked by mohammedshifan, 9 months ago

for i in range(4,0,-1):

for j in range(i):

print(j,end="")

print()​

Answers

Answered by anindyaadhikari13
2

Question:-

Write the output of the following code.

Output:-

Given code in python,

for i in range(4,0,-1):

for j in range(i):

print(j,end="")

print()

The output produced will be,

0123

012

01

0

For verification, check out the attachment.

Attachments:
Similar questions