HTMLify
Home
Log in
Register
Dashboard
Frames
API
Q326_Power_of_Three.py
Views: 161 | Author:
djdj
def
isPowerOfTwo
(
self
,
n
):
for
i
in
range
(
0
,
31
):
if
n
==
3
**
i
:
return
1
return
0
Share this file:
Copy
Short Link
View Raw
Download File
(95 B)
Embed Code
Clone
Comments
Comment