Write one_to_n(n) that returns the list [1, 2, …, n] (an empty list when n is 0).
one_to_n(5) → [1, 2, 3, 4, 5]
one_to_n(0) → []
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.