Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def printStuff(num):
- numstr=''.join(map(str, range(2, num + 1)))
- for index in range(num, 0, -1):
- print(f'{index}{numstr}')
- numstr = numstr[:-1]
- printStuff(5)
- printStuff(4)
- printStuff(3)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement