Back to top


Power of two

Power of two

This month, Mihalis explains how to use binary arithmetic in order to determine whether or not a given number is a power of two. This package contains the three Python scripts that he discusses.

#157

This content is available for immediate download to owners of the magazine.


Future is an award-winning international media group and leading digital business. We reach more than 57 million international consumers a month and create world-class content and advertising solutions for passionate consumers online, on tablet and smartphone, and in print.

Found a problem? Report it.