An operator is a symbol that performs a certain operation between operands.

enhanced (14).jpg

Questions:

Q. How to return 2^3 in Python?

Answer:

2 ** 3

Q. How do you return round numbers in Python?

Answer:

number = 3.48
print(round(number))

#Output: 3

number = 3.48
print(round(number,1))

#Output: 3.5

Q. Explain the logical operators in Python.

Answer: