The Tower of Hanoi hole will go live in approximately 6 hours. Why not try and solve it ahead of time?
Tower of Hanoi in Python in bytes. Achievements Cheevos Holes Languages Medals Miscellaneous All Holes 12 Days of Christmas 24 Game 99 Bottles of Beer Abundant Numbers Abundant Numbers (Long) Arabic to Roman Arithmetic Numbers Arrows Ascending Primes ASCII Table Billiards brainfuck Card Number Validation Catalan Numbers Catalan’s Constant Christmas Trees Collatz CSS Colors Cubes Day of Week DFA Simulator Diamonds Divisors Emirp Numbers Emirp Numbers (Long) Emojify Evil Numbers Evil Numbers (Long) Factorial Factorisation Farey Sequence Fibonacci Fizz Buzz Foo Fizz Buzz Bar Forsyth–Edwards Notation Fractions Game of Life Gijswijt’s Sequence Happy Numbers Happy Numbers (Long) Hexdump Hilbert Curve Intersection Inventory Sequence ISBN Jacobi Symbol Kaprekar Numbers Kolakoski Constant Kolakoski Sequence Leap Years Levenshtein Distance Leyland Numbers ln 2 Look and Say Lucky Numbers Lucky Tickets Mahjong Mandelbrot Maze Medal Tally Minesweeper Morse Decoder Morse Encoder Musical Chords N Queens Niven Numbers Niven Numbers (Long) Number Spiral Odious Numbers Odious Numbers (Long) Ordinal Numbers PalindromemordnilaP Pangram Grep Partition Numbers Pascal’s Triangle Pernicious Numbers Pernicious Numbers (Long) Poker Polyominoes Prime Numbers Prime Numbers (Long) Proximity Grid QR Decoder Quine Recamán Repeating Decimals Reverse Polish Notation Reversi Rijndael S-box Rock-paper-scissors-Spock-lizard Roman to Arabic ROT13 Rule 110 Scrambled Sort Set Seven Segment SI Units Sierpiński Triangle Smith Numbers Spelling Numbers Star Wars GPT Star Wars Opening Crawl Sudoku Sudoku (Fill-in) Ten-pin Bowling Tic-tac-toe Time Distance Tongue-twisters Topological Sort Transpose Sentence Trinomial Triangle United States Vampire Numbers Van Eck Sequence Zeckendorf Representation Zodiac Signs γ λ π τ φ √2 𝑒 Apéry’s Constant Binary Lambda Calculus Calendar Connect Four Continued Fractions Crossword CSS Colors (Inverse) CSS Grid Ellipse Perimeters Flags Floyd-Steinberg Dithering Gray Code Decoder Gray Code Encoder Hexagonal Spiral Highly Composite Numbers NFA Simulator Odd Polyomino Tiling p-adic Expansion Polygon Triangulations QR Encoder Quadratic Formula Semiprime Numbers Smooth Numbers Snake Sphenic Numbers Taxicab Numbers Tower of Hanoi Turtle Tutorial All Languages ><> Assembly AWK Bash BASIC Berry brainfuck C C# C++ Civet Clojure COBOL Coconut Common Lisp Crystal D Dart Elixir Erlang F# Factor Forth Fortran Gleam Go GolfScript Groovy Haskell Hexagony J Janet Java JavaScript jq Julia K Kotlin Lua Nim OCaml Pascal Perl PHP PowerShell Prolog Python R Raku Rockstar Ruby Rust Scheme sed SQL Swift Tcl TeX V VimL Wren Zig 05AB1E ALGOL 68 APL Arturo Befunge BQN CJam CoffeeScript Egel Fennel Harbour Hare Haxe Hush Hy iogii Knight Luau Odin Picat Qore Racket Rebol Rexx Scala Squirrel Stax Uiua Umka Vala Vyxal Bytes Chars Scoring Bytes Chars Language All ><> Assembly AWK Bash BASIC Berry brainfuck C C# C++ Civet Clojure COBOL Coconut Common Lisp Crystal D Dart Elixir Erlang F# Factor Forth Fortran Gleam Go GolfScript Groovy Haskell Hexagony J Janet Java JavaScript jq Julia K Kotlin Lua Nim OCaml Pascal Perl PHP PowerShell Prolog Python R Raku Rockstar Ruby Rust Scheme sed SQL Swift Tcl TeX V VimL Wren Zig Experimental Language 05AB1E ALGOL 68 APL Arturo Befunge BQN CJam CoffeeScript Egel Fennel Harbour Hare Haxe Hush Hy iogii Knight Luau Odin Picat Qore Racket Rebol Rexx Scala Squirrel Stax Uiua Umka Vala Vyxal Hole All 12 Days of Christmas 24 Game 99 Bottles of Beer Abundant Numbers Abundant Numbers (Long) Arabic to Roman Arithmetic Numbers Arrows Ascending Primes ASCII Table Billiards brainfuck Card Number Validation Catalan Numbers Catalan’s Constant Christmas Trees Collatz CSS Colors Cubes Day of Week DFA Simulator Diamonds Divisors Emirp Numbers Emirp Numbers (Long) Emojify Evil Numbers Evil Numbers (Long) Factorial Factorisation Farey Sequence Fibonacci Fizz Buzz Foo Fizz Buzz Bar Forsyth–Edwards Notation Fractions Game of Life Gijswijt’s Sequence Happy Numbers Happy Numbers (Long) Hexdump Hilbert Curve Intersection Inventory Sequence ISBN Jacobi Symbol Kaprekar Numbers Kolakoski Constant Kolakoski Sequence Leap Years Levenshtein Distance Leyland Numbers ln 2 Look and Say Lucky Numbers Lucky Tickets Mahjong Mandelbrot Maze Medal Tally Minesweeper Morse Decoder Morse Encoder Musical Chords N Queens Niven Numbers Niven Numbers (Long) Number Spiral Odious Numbers Odious Numbers (Long) Ordinal Numbers PalindromemordnilaP Pangram Grep Partition Numbers Pascal’s Triangle Pernicious Numbers Pernicious Numbers (Long) Poker Polyominoes Prime Numbers Prime Numbers (Long) Proximity Grid QR Decoder Quine Recamán Repeating Decimals Reverse Polish Notation Reversi Rijndael S-box Rock-paper-scissors-Spock-lizard Roman to Arabic ROT13 Rule 110 Scrambled Sort Set Seven Segment SI Units Sierpiński Triangle Smith Numbers Spelling Numbers Star Wars GPT Star Wars Opening Crawl Sudoku Sudoku (Fill-in) Ten-pin Bowling Tic-tac-toe Time Distance Tongue-twisters Topological Sort Transpose Sentence Trinomial Triangle United States Vampire Numbers Van Eck Sequence Zeckendorf Representation Zodiac Signs γ λ π τ φ √2 𝑒 Experimental Hole Apéry’s Constant Binary Lambda Calculus Calendar Connect Four Continued Fractions Crossword CSS Colors (Inverse) CSS Grid Ellipse Perimeters Flags Floyd-Steinberg Dithering Gray Code Decoder Gray Code Encoder Hexagonal Spiral Highly Composite Numbers NFA Simulator Odd Polyomino Tiling p-adic Expansion Polygon Triangulations QR Encoder Quadratic Formula Semiprime Numbers Smooth Numbers Snake Sphenic Numbers Taxicab Numbers Tower of Hanoi Turtle Tutorial # Golfer Points Bytes Time Submitted 1st khvdm 0 52 11ms 30 Oct 2025 1st pardouin 🇫🇷 0 52 11ms 1 Nov 2025 1st Seek64 🇩🇪 0 52 11ms 13 days ago 1st sunleonid 0 52 12ms 45 hours ago 5th xnor-gate 0 54 11ms 34 hours ago 5th hellopir2 0 54 12ms 32 hours ago 7th stefangimmillaro 0 55 13ms 30 Oct 2025 7th bricknellj 0 55 11ms 30 Oct 2025 7th ovs-code 🇩🇪 0 55 11ms 31 Oct 2025 7th bitsandbeyond 🇳🇱 0 55 11ms 1 Nov 2025 7th GolfingSuccess 🇬🇷 0 55 11ms 27 days ago 7th Mukundan314 0 55 11ms 15 days ago 7th lukegustafson 🇺🇸 0 55 12ms 6 days ago 7th m-tkach 🇺🇦 0 55 11ms 6 days ago 7th CornerMercury 🇬🇧 0 55 12ms 22 hours ago 16th AlephSquirrel 0 56 11ms 30 Oct 2025 16th hallvabo 🇳🇴 0 56 11ms 30 Oct 2025 16th bizy-coder 0 56 11ms 4 days ago 16th ndren 0 56 11ms 22 hours ago 16th zacjl 0 56 11ms 65 mins ago 21st kg583 🇺🇸 0 57 11ms 30 Oct 2025 21st KasperKivimaeki 🇫🇮 0 57 11ms 30 Oct 2025 21st edsrzf 🇳🇿 0 57 11ms 31 Oct 2025 21st Shanethegamer 🇺🇸 0 57 11ms 27 days ago 21st 4atj 0 57 11ms 25 days ago 21st MeWhenI 🇻🇦 0 57 11ms 9 days ago 21st CaedenHarper 🇨🇦 0 57 11ms 38 hours ago 21st blaztoma 🇱🇹 0 57 11ms 6 hours ago 29th rucin93 🇵🇱 0 58 12ms 30 Oct 2025 30th davecame 0 59 11ms 17 days ago 30th Kacarott 🇦🇺 0 59 11ms 14 days ago 30th emgordon154 0 59 11ms 6 days ago 30th commandblockguy 🇺🇸 0 59 11ms 2 days ago 30th dokutan 0 59 11ms 2 days ago 30th luuumine 🇫🇷 0 59 11ms 2 days ago 30th snoozingnewt 🇺🇸 0 59 11ms 46 hours ago 30th FortuiteMan 🇫🇷 0 59 11ms 43 hours ago 38th 5cw 🇺🇸 0 60 11ms 14 days ago 39th albanian-laundromat 0 61 11ms 7 days ago 40th DialFrost 🇸🇬 0 70 18ms 30 Oct 2025 40th cros107 🇦🇺 0 70 11ms 19 days ago 42nd duckyluuk 🇳🇱 0 73 10ms 30 Oct 2025 42nd anter69 🇭🇺 0 73 11ms 20 days ago 42nd ahmetdemirag 🇨🇾 0 73 11ms 46 hours ago 42nd Yewzir 🇧🇪 0 73 11ms 2 hours ago 46th Babafaba 0 74 11ms 9 days ago 46th JOrE20 🇺🇸 0 74 11ms 9 days ago 46th HumanoidCPU 0 74 11ms 36 hours ago 46th TheZwierzLF 🇵🇱 0 74 11ms 19 hours ago 46th BREMAUCY 🇫🇷 0 74 11ms 8 hours ago 51st Ripick 0 76 10ms 15 days ago 52nd mousetail 🇳🇱 0 77 11ms 7 days ago 53rd msbranicky 0 79 10ms 4 days ago 54th starfihs 0 80 11ms 32 hours ago 55th KatieLG 🇬🇧 0 245 10ms 6 hours ago 56th Emutis 🇱🇹 0 3,589 11ms 2 hours ago 1–56 of 56