Skip to content
>_
LearnPy Hub
☰ Menu
Learn
Practice
Compiler
Arena
Contest
About
◐
← Arena
Easy
Rating 1000
Power of Four
Print YES if n is a power of 4 (1, 4, 16, ...).
Input
One integer.
Output
YES or NO.
Sample 1
Input
16
Output
YES
Sample 2
Input
8
Output
NO
solution.py
☀ Light
Clear
▶ Run
▶ Run samples
Submit
Output appears here
Power of Four · Python Arena problem · LearnPy Hub