Skip to main content
deleted 2 characters in body
Source Link

Python 3, 4544 bytes

lambda n:[1]+[f"[f"{j or''}{j+1}"for j in range(1,n)]

Try it online!Try it online!

Python 3, 45 bytes

lambda n:[1]+[f"{j}{j+1}"for j in range(1,n)]

Try it online!

Python 3, 44 bytes

lambda n:[f"{j or''}{j+1}"for j in range(n)]

Try it online!

edited body
Source Link

Python 3, 45 bytes

lambda n:[1]+[f"{j}{j+1}"for j in range(1,n)]

Try it online!Try it online!

Python 3, 45 bytes

lambda n:[1]+[f"{j}{j+1}"for j in range(1,n)]

Try it online!

Python 3, 45 bytes

lambda n:[1]+[f"{j}{j+1}"for j in range(1,n)]

Try it online!

deleted 3 characters in body
Source Link

Python 3, 4845 bytes

f=lambdalambda n:[1]+[f"{j}{j+1}" for"for j in range(1,n)]

Try it online!

Python 3, 48 bytes

f=lambda n:[1]+[f"{j}{j+1}" for j in range(1,n)]

Try it online!

Python 3, 45 bytes

lambda n:[1]+[f"{j}{j+1}"for j in range(1,n)]

Try it online!

Source Link
Loading