# ChapterArithmetic/powers2.py """ Powers of 2 till n. Enter n? 4 2** 0 = 1 2** 1 = 2 2** 2 = 4 2** 3 = 8 """ def main(): n = int(input("Powers of 2 till n. Enter n? ")) for i in range(n): print("2**", i,"=", 2 ** i) main()