Leetcode: Power of Two Python Solution

Photo by Fotis Fotopoulos on Unsplash

The Question

Input: n = 1
Output