You are viewing a single comment's thread. Return to all comments →
I was sure this would be allowed:
for i in range(1, int(input())+1): print(*(list(range(1, i)) + list(range(i, 0, -1))), sep="")
Turns out specifying the sep parameter with an empty string counts as using strings for your solution. Very annoying.
sep
Anyways, here is my version:
for i in range(1, int(input())+1): print(sum(map(lambda n: 10**n, range(i)))**2)
Seems like cookies are disabled on this browser, please enable them to open this website
Triangle Quest 2
You are viewing a single comment's thread. Return to all comments →
I was sure this would be allowed:
Turns out specifying the
sepparameter with an empty string counts as using strings for your solution. Very annoying.Anyways, here is my version: