Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Python
/ main
Function
main
other/tower_of_hanoi.py:22–24 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
20
21
22
def
main():
23
height = int(input(
"Height of hanoi: "
).strip())
24
move_tower(height,
"A"
,
"B"
,
"C"
)
25
26
27
if
__name__ ==
"__main__"
:
Callers
1
tower_of_hanoi.py
File · 0.70
Calls
1
move_tower
Function · 0.85
Tested by
no test coverage detected