Sort by

recency

|

3501 Discussions

|

  • + 0 comments

    if name == 'main': n = int(input()) for i in range(1, n+1): print(i, end='')

  • + 0 comments

    Simply add this in print statement ,end="")

    CODE :

    for i in range (1,n+1): print(i,end="")

  • + 0 comments

    if name == 'main': n = int(input()) num = [] for i in range(int(n)): num.append(i + 1)

    print("".join(str(item) for item in num))

    Seems a little complicated but this is how my brain wanted to do it haha

  • + 0 comments

    if name == 'main': n = int(input())

    for i in range(1,n+1): print(i , end="")

  • + 0 comments

    if name == 'main': n = int(input()) output = 1 j = 1 for i in range(2,n+1): if i%(10**j)==0: j = j+1 multiplier = 10**j output = output*multiplier+i

    print(output)