Given an integer, write a function to determine if it is a power of 2. And return a boolean which is True or False.
True
False
Given 128,
128
128 is 2^7 So, that must return True.
Log in to make your opinion count.