Tag: operators

Python Programming Tutorial for Beginners – Part 4 – Basic Operators
Tech Tips

Python Programming Tutorial for Beginners – Part 4 – Basic Operators

Operators are used to perform operations on or to check on variables and values. Think of them as doctors in programming that can either bring you into existence, give you a checkup or modify your identity. There are many types of operators but for this basic tutorial, we will focus on Assignment operators, Arithmetic operators and Comparison operators. Assignment operator You have already used an assignment operator in the form of the equal sign so when we type x = 3 the operator is giving the variable named x the value of the integer number 3. Arithmetic operators Next up we have arithmetic operators which are used to perform mathematical operations on variables and values. So think of addition, subtraction, multiplication and division just to start out. so let's try them out:...