You are viewing a single comment's thread. Return to all comments →
This seems to work in python3. If anyone has a better option please tell me
#!/bin/python3 import sys n = int(input().strip()) x = 1 while n > 0: print(" "*(n-1)+"#"*x) n -= 1 x += 1
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 →
This seems to work in python3. If anyone has a better option please tell me