Skip to main content
2 of 4
edited body
Morgan Thrapp
  • 3.7k
  • 15
  • 29

#Python 3, 81

Nothing too exciting, join the ranges and then convert to ints and add them.

lambda x:int(''.join(map(str,range(0,x+1))))+int(''.join(map(str,range(x,0,-1))))
Morgan Thrapp
  • 3.7k
  • 15
  • 29