Advertisement
Guest User

new

a guest
Apr 20th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. def printStuff(num):
  2.     numstr=''.join(map(str, range(2, num + 1)))
  3.     for index in range(num, 0, -1):
  4.         print(f'{index}{numstr}')
  5.         numstr = numstr[:-1]
  6.  
  7. printStuff(5)
  8. printStuff(4)
  9. printStuff(3)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement