Skip to content

Instantly share code, notes, and snippets.

@ashitaka1963
Created April 18, 2020 23:45
Show Gist options
  • Save ashitaka1963/9687be474a66f10190fc863cac8f8695 to your computer and use it in GitHub Desktop.
Save ashitaka1963/9687be474a66f10190fc863cac8f8695 to your computer and use it in GitHub Desktop.
べき乗演算子
n=2
for i in range(10):
print(n**i, end="")
print(" ", end="")
print(pow(n,i), end="")
print()
# 2 2
# 4 4
# 8 8
# 16 16
# 32 32
# 64 64
# 128 128
# 256 256
# 512 512
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment