input: Write a function to print a staircase of height 'n', where n is an integer. The staircase should be right-aligned and consist of '#' characters. If n is zero, the function should print an empty line.
  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")
  
  # Test cases
  assert staircase(0) == "\n"
  assert staircase(1) == " #\n"
  assert staircase(2) == "  #\n ##\n"
  assert staircase(3) == "   #\n  ##\n ###\n"
  assert staircase(4) == "    #\n   ##\n  ###\n ####\n"
  assert staircase(5) == "     #\n    ##\n   ###\n  ####\n #####\n"
output: def staircase(n):
      for i in range(1, n + 1):
          print(" " * (n - i) + "#" * i)