Skip to content

Instantly share code, notes, and snippets.

@Goddard Goddard/
Created Apr 15, 2019

What would you like to do?
hankerrank staircase example python
import math
import os
import random
import re
import sys
# Complete the staircase function below.
def staircase(n):
for i in range(n):
print_value = ""
for j in range(n):
if(j >= n-i-1):
print_value += "#"
print_value += " "
if __name__ == '__main__':
n = int(input())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.