Created
April 18, 2020 23:45
-
-
Save ashitaka1963/9687be474a66f10190fc863cac8f8695 to your computer and use it in GitHub Desktop.
べき乗演算子
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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