|
6 | 6 |
|
7 | 7 | 2. Loop through the list and separate the *odd* and the *even* numbers.
|
8 | 8 |
|
9 | | -3. Create a variable called `sorted_numbers` to start appending the *odd* numbers. |
| 9 | +3. Create a variable called `sorted_list` to start appending the *odd* numbers. |
10 | 10 |
|
11 | 11 | 4. If the number is even, push it to a placeholder list named `even`.
|
12 | 12 |
|
13 | | -5. Then insert the `even` list into the `sorted_numbers`. Remember, the *odd* numbers come first, and you have to insert the `even` list after. |
| 13 | +5. Then insert the `even` list into the `sorted_list`. Remember, the *odd* numbers come first, and you have to insert the `even` list after. |
14 | 14 |
|
15 | 15 | ## 💡 Hints:
|
16 | 16 |
|
|
0 commit comments