You are viewing a single comment's thread. Return to all comments →
al = n * "#" el = n * " " for i in range(1, len(al)+1): result = el[i:] + al[:i] print(result) i did it like this and i passed a lot of time thinking it xd
al = n * "#" el = n * " "
for i in range(1, len(al)+1): result = el[i:] + al[:i] print(result) i did it like this and i passed a lot of time thinking it xd
for i in range(1, len(al)+1): result = el[i:] + al[:i] print(result)
i did it like this and i passed a lot of time thinking it xd
Seems like cookies are disabled on this browser, please enable them to open this website
Staircase
You are viewing a single comment's thread. Return to all comments →