mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-01-13 04:48:03 +00:00
Changed xrange to range to be compatible with Python 3.
This commit is contained in:
@@ -134,7 +134,7 @@
|
||||
" \n",
|
||||
" def test_fib(self, func):\n",
|
||||
" result = []\n",
|
||||
" for i in xrange(num_items):\n",
|
||||
" for i in range(num_items):\n",
|
||||
" result.append(func(i))\n",
|
||||
" fib_seq = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n",
|
||||
" assert_equal(result, fib_seq)\n",
|
||||
|
||||
Reference in New Issue
Block a user