input: Write a function to generate a staircase pattern of height 'n' where 'n' is an integer. The function should print the staircase such that each step of the staircase is represented by the '#' character, with spaces before each step for alignment.
  
  def staircase(n): 
      for i in range(0, n): 
          for j in range(0, n - i - 1): 
              print(end=" ") 
          for j in range(0, i + 1): 
              print("#", end="") 
          print("\r") 
  
  assert staircase(5) == None
  assert staircase(3) == None
  assert staircase(1) == None
  assert staircase(0) == None
  assert staircase(7) == None
output: def staircase(n): 
      for i in range(0, n): 
          for j in range(0, n - i - 1): 
              print(end=" ") 
          for j in range(0, i + 1): 
              print("#", end="") 
          print()