Write is_power_of_three(n) that returns True if n is 1, 3, 9, 27, … (n ≥ 1).
is_power_of_three(27) → True
is_power_of_three(12) → False
Submit runs 5 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.