Function to get a no. before input no.

 a= int(input(" Put your no.\n"))



d= int(0)

c=[]

Letst= True


while Letst:

    for n in range(0, a):

        d+= a -(a-1) 

        c.append(d)

        if d-a== 0:

            Letst = False

            



def convert(c):

      

    s = [str(i) for i in c]

      


    res = int("".join(s))

      

    return(res)

  

Comments

Popular posts from this blog

Leap year checker by Rahul