You are viewing a single comment's thread. Return to all comments →
thats how it is done without print trick
import math if __name__ == '__main__': n = int(input()) a = 0 m = 10**n for i in range(1, n+1): m = math.floor(math.log10(i))+1 m = 10**m a = a*m + i print(a)
Seems like cookies are disabled on this browser, please enable them to open this website
Print Function
You are viewing a single comment's thread. Return to all comments →
thats how it is done without print trick