I need to return if the given number is the power of two or not
def PowersofTwo(num):
i = int
for num in I:
if num == 2**[I]:
return ("true")
else:
return ("false")
print PowersofTwo(raw_input())
I need some guidance on how to revise it