0
How to print in following pattern by taking input from user
n=int(input('NUMBER':)) if in =5 then it has to print 55555 4444 333 22 1
6 Answers
+ 2
here, have a look at this:
https://code.sololearn.com/cN940FyIM215/?ref=app
+ 4
Here's another way:
for i in range(int(input()), 0, -1):
print(str(i) * i)
+ 1
Mohamed ELomari without using str function
0
Will this example be enough for you:
https://www.sololearn.com/Discuss/1539038/i-wanted-coding-a-pattern-please-modify-it-and-if-possible-please-explain-line-by-line-i-m-facing
?
0
here you are:
https://code.sololearn.com/ci0ihqUZRI2d/#py
0
Mohamed ELomari Thanks!
can you please explain?