0

I'm trying to solve The Reve Puzzle (trying to get all the disk to the last peg; similar to the towers of hanoi problem.) this is what I've come up with so far.
def solve(disk, source, temppeg1, temppeg2, destination):
if disk == 1:
print((source, destination))
elif disk == 2:
...