Python Basics Day 1
Python Basics Day 1
Step 1: Go to Python.org.
Step 1: Go to anaconda.com
Step 2: Download the anaconda
setup.
= equals
+= x += 5 is same as x = x + 5
-= x -= 5 is same as x = x - 5
*= x *= 5 is same as x = x * 5
/= x /= 5 is same as x = x / 5
%= x %= 5 is same as x = x % 5
|= x |= 5 is same as x = x | 5
^= x ^= 5 is same as x = x ^ 5
+ Add
- Subtract
* Multiply
/ divide
** Exponent
// Floor Division
% Modulus
< Smaller
> Greater
== Equals
!= Not Equals
Identity operators in python are used to compare if the objects are in fact
the same object or not.
support@intellipaat.com