def TowerOfHanoi(n, source, destination, auxilliary): 
    if n==1: 
        print("Move disk 1 from source",source,"to destination",destination)
        return
    TowerOfHanoi(n-1, source, auxilliary, destination) 
    print("Move disk",n,"from source",source,"to destination",destination)
    TowerOfHanoi(n-1, auxilliary, destination, source) 

# Driver
n = 5
TowerOfHanoi(n,'A','B','C') 
# A, C, B are the name of rods

abdb2ab7b7b50a03bab310239fad0d8137413482
<mask token>

def TowerOfHanoi(n, source, destination, auxilliary):
    if n == 1:
        print('Move disk 1 from source', source, 'to destination', destination)
        return
    TowerOfHanoi(n - 1, source, auxilliary, destination)
    print('Move disk', n, 'from source', source, 'to destination', destination)
    TowerOfHanoi(n - 1, auxilliary, destination, source)


<mask token>

def TowerOfHanoi(n, source, destination, auxilliary):
    if n == 1:
        print('Move disk 1 from source', source, 'to destination', destination)
        return
    TowerOfHanoi(n - 1, source, auxilliary, destination)
    print('Move disk', n, 'from source', source, 'to destination', destination)
    TowerOfHanoi(n - 1, auxilliary, destination, source)


<mask token>
TowerOfHanoi(n, 'A', 'B', 'C')

def TowerOfHanoi(n, source, destination, auxilliary):
    if n == 1:
        print('Move disk 1 from source', source, 'to destination', destination)
        return
    TowerOfHanoi(n - 1, source, auxilliary, destination)
    print('Move disk', n, 'from source', source, 'to destination', destination)
    TowerOfHanoi(n - 1, auxilliary, destination, source)


n = 5
TowerOfHanoi(n, 'A', 'B', 'C')

def TowerOfHanoi(n, source, destination, auxilliary): 
    if n==1: 
        print("Move disk 1 from source",source,"to destination",destination)
        return
    TowerOfHanoi(n-1, source, auxilliary, destination) 
    print("Move disk",n,"from source",source,"to destination",destination)
    TowerOfHanoi(n-1, auxilliary, destination, source) 

# Driver
n = 5
TowerOfHanoi(n,'A','B','C') 
# A, C, B are the name of rods
