input: Write a function to generate a staircase pattern of height 'n', where n is an integer. Each step in the staircase should start from the left and be built using the character '#' while maintaining the necessary space padding to form an inclined staircase shape.
  
  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() 
    
  # Testing the function with various inputs
  assert staircase(5)
  assert staircase(3)
  assert staircase(7) 
  assert staircase(0) # Should print nothing since height is 0
  assert staircase(1)
output: def staircase(n): 
      for i in range(n): 
          print(' ' * (n - i - 1) + '#' * (i + 1))