Answers for "calculations in python"

0

calculations in python

# 1). Addition use "+" sign
print(2 + 3)

# 2). Substraction use "-" sign
print(3 - 2)

# 3). Division use "/" sign
print(4 / 2)

# 4). Multiplication use "*" sign
print(4 * 2)

# 5). Exponentiation use "**" sign
print(4 ** 2)

# 6). Modulus Division use "%" sign
print(23 & 2)

# 7.) Integer Division use "//" sign
print(12 // 5)

# Outputs

# 5
# 1
# 2
# 8
# 16
# 1
# 2
Posted by: Guest on August-31-2021

Code answers related to "calculations in python"

Python Answers by Framework

Browse Popular Code Answers by Language