Skip to main content
1 of 4
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(1,x+1))))+int(''.join(map(str,range(x,0,-1))))
Morgan Thrapp
  • 3.7k
  • 15
  • 29