input: 
  def solve_hanoi(disks, from_peg, to_peg, aux_peg):
      """Solve the Towers of Hanoi puzzle for a given number of disks and pegs.
      >>> solve_hanoi(3, 'A', 'B', 'C')
      Moving disk 1 from A to B
      Moving disk 2 from A to C
      Moving disk 1 from B to C
      Moving disk 3 from A to B
      Moving disk 1 from C to A
      Moving disk 2 from C to B
      Moving disk 1 from A to B
      """
  
output:     if disks == 1:
          print(f"Moving disk 1 from {from_peg} to {to_peg}")
      else:
          solve_hanoi(disks - 1, from_peg, aux_peg, to_peg)
          print(f"Moving disk {disks} from {from_peg} to {to_peg}")
          solve_hanoi(disks - 1, aux_peg, to_peg, from_peg)