input: Write a function to print a staircase of height 'n' in Python. The staircase should be right-aligned and consist of '#' characters. The function should take an integer 'n' as input and print the staircase accordingly.
  
  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) is None
  assert staircase(3) is None
  assert staircase(1) is None
  assert staircase(0) is None
  assert staircase(7) is None
output: def staircase(n): 
      for i in range(1, n + 1): 
          print(" " * (n - i) + "#" * i)