Skip to main content
Include py 3 variant
Source Link
RGS
  • 14.1k
  • 1
  • 57
  • 116

Python 2, 17 bytes

lambda n:(n+8)/10

Try it online! Uses Python 2's integer division. In Python 3 would be a byte longer with lambda n:(n+8)//10.

Python 2, 17 bytes

lambda n:(n+8)/10

Try it online!

Python 2, 17 bytes

lambda n:(n+8)/10

Try it online! Uses Python 2's integer division. In Python 3 would be a byte longer with lambda n:(n+8)//10.

Source Link
RGS
  • 14.1k
  • 1
  • 57
  • 116

Python 2, 17 bytes

lambda n:(n+8)/10

Try it online!