hanoi = lambda n, a, b, c: print(f"Move disk {n} from {a} to {b}") or (n > 1 and hanoi(n-1, a, c, b) or hanoi(n-1, c, b, a))