The Four Basic Operations
1 min readMay 13, 2020
Let’s start by doing basic math using Python.
As many of you may assume, there won’t be many differences when using a calculator, but special attention is needed for some cases.
The four basic mathematical operations are addition, subtraction, multiplication, and division which can be represented by their proper sign or operator: +, -, * and /.
Division can be represented by using “/” or “//” depending on which result is expected from actual operation.
Keep in mind that, when a float result is needed, you should use “/” operator and an integer result can be obtained by using “//”.
Happy coding! 🐍