how to use and operator in python code example

Example 1: operators in python

# Python Operators
Operator	Name			Example
+			Addition		x + y	
-			Subtraction		x - y	
*			Multiplication	x * y	
/			Division		x / y	
%			Modulus			x % y	
**			Exponentiation	x ** y	
//			Floor division	x // y

Example 2: // meaning in python

##  // Returns the integer value of the quotient 

eg 906 / 100 = 9.06

906 // 100 = 9

Example 3: logical operators python

Python uses and and or conditionals.

i.e.

if foo == 'abc' and bar == 'bac' or zoo == '123':
  # do something

Example 4: //= python meaning

#Performs floor-division on the values on either side. Then assigns it to the expression on the left.
>>> a=6
>>> a//=3
>>> print(a)
2

Example 5: x and y in python

x > y is False
x < y is True
x == y is False
x != y is True
x >= y is False
x <= y is True