Write powers_of_two(n) that returns [1, 2, 4, …, 2ⁿ] (n + 1 numbers).
powers_of_two(3) → [1, 2, 4, 8]
powers_of_two(0) → [1]
Submit runs 4 tests, including hidden edge cases.
Each hint gives a little more help. Try on your own first.
Run your code to see the output here.