Ad
  • Custom User Avatar

    to make it more understandable you could use some while loops:
    def numberprint(x):
    nor = 0
    final = ''
    while nor < x:
    nor += 1
    final += str(nor)
    while nor > 1:
    nor -= 1
    final += str(nor)
    return final