Guess what? TWO ways of doing this (at least). I promise that wasn't intentional ;) Anyways, use whichever method works best for your thought process when doing is_power_of_2!
Enjoy the video! As always, if this content is good for you, please consider supporting the channel. Us little guys need all the help we can get :) Thanks!
Follow me on Github: https://github.com/csphilli