Log in Register Dashboard Temp Share Shortlinks Frames API

HTMLify

h4ck622oas.txt
Views: 86 | Author: Unknown
n = int(input("Enter n: "))

for _ in range(n):
    l = "".join([str(s+1) for s in range(_)])
    r = str(n)*(n-len(l))
    print(l+r)

Comments