mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-01-07 01:48:02 +00:00
Changed xrange to range to be compatible with Python 3.
This commit is contained in:
@@ -136,10 +136,10 @@
|
||||
" assert_equal(dest.pop(), 5)\n",
|
||||
"\n",
|
||||
" print('Test: 2 or more disks')\n",
|
||||
" for i in xrange(num_disks, -1, -1):\n",
|
||||
" for i in range(num_disks, -1, -1):\n",
|
||||
" src.push(i)\n",
|
||||
" hanoi(num_disks, src, dest, buff)\n",
|
||||
" for i in xrange(0, num_disks):\n",
|
||||
" for i in range(0, num_disks):\n",
|
||||
" assert_equal(dest.pop(), i)\n",
|
||||
"\n",
|
||||
" print('Success: test_hanoi')\n",
|
||||
|
||||
Reference in New Issue
Block a user