Script
#!/usr/local/bin/python3.1
print("73 + 61 = ", end="")
print(73 + 61)
print("44 - 17 = ", end="")
print(44 - 17)
print("100/20 = ", end="")
print(100/20)
print("100/27 = ", end="")
print(100/27)
print("100.0/27 = ", end="")
print(100.0 / 27)
print("6 times 25 = ", end="")
print(6 * 25)
print("2 to the power 8 = ", end="")
print(2 ** 8)
print("2 to the power 32 = ", end="")
print(2 ** 32)
print("2 to the power 128 = ", end="")
print(2 ** 128)
print("37 modulus 8 = ", end="")
print(37 % 8)
print("-5 to the power of 4 = ", end="")
print(-5 **4)
print("-5 to the power of -4 = ", end="")
print(-5 ** -4)
#!/usr/local/bin/python3.1
print("73 + 61 = ", end="")
print(73 + 61)
print("44 - 17 = ", end="")
print(44 - 17)
print("100/20 = ", end="")
print(100/20)
print("100/27 = ", end="")
print(100/27)
print("100.0/27 = ", end="")
print(100.0 / 27)
print("6 times 25 = ", end="")
print(6 * 25)
print("2 to the power 8 = ", end="")
print(2 ** 8)
print("2 to the power 32 = ", end="")
print(2 ** 32)
print("2 to the power 128 = ", end="")
print(2 ** 128)
print("37 modulus 8 = ", end="")
print(37 % 8)
print("-5 to the power of 4 = ", end="")
print(-5 **4)
print("-5 to the power of -4 = ", end="")
print(-5 ** -4)
Execution
73 + 61 = 134
44 - 17 = 27
100/20 = 5.0
100/27 = 3.7037037037
100.0/27 = 3.7037037037
6 times 25 = 150
2 to the power 8 = 256
2 to the power 32 = 4294967296
2 to the power 128 = 340282366920938463463374607431768211456
37 modulus 8 = 5
-5 to the power of 4 = -625
-5 to the power of -4 = -0.0016
44 - 17 = 27
100/20 = 5.0
100/27 = 3.7037037037
100.0/27 = 3.7037037037
6 times 25 = 150
2 to the power 8 = 256
2 to the power 32 = 4294967296
2 to the power 128 = 340282366920938463463374607431768211456
37 modulus 8 = 5
-5 to the power of 4 = -625
-5 to the power of -4 = -0.0016
No comments:
Post a Comment