How to perform mathematical operations in Python?