Advertisement
Gerald3901

Powers of 2 Python code

Aug 12th, 2024
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.08 KB | None | 0 0
  1. n = 2
  2. for x in range(1, 100):
  3.     print(str(n) + " = 2^" + str(x))
  4.     n *= 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement