input: 
  def solve_hanoi(disks, source, spare, target):
      """
      Solve the Towers of Hanoi game for a given number of disks.
      Print the steps to move all disks from the source tower to the target tower.
      
      >>> solve_hanoi(3, "A", "B", "C")
      Moving disk 1 from A to C
      Moving disk 2 from A to B
      Moving disk 1 from C to B
      Moving disk 3 from A to C
      Moving disk 1 from B to A
      Moving disk 2 from B to C
      Moving disk 1 from A to C
      """
      if disks == 1:
          print("Moving disk 1 from {} to {}".format(source, target))
      else:
          solve_hanoi(disks - 1, source, target, spare)
          print("Moving disk {} from {} to {}".format(disks, source, target))
          solve_hanoi(disks - 1, spare, source, target)
  
output:     if disks == 1:
          print("Moving disk 1 from {} to {}".format(source, target))
      else:
          solve_hanoi(disks - 1, source, target, spare)
          print("Moving disk {} from {} to {}".format(disks, source, target))
          solve_hanoi(disks - 1, spare, source, target)