x = 5
y = 3

print(x + y)
x = 5
y = 3

print(x - y)
x = 5
y = 3

print(x * y)
x = 12
y = 3

print(x / y)
x = 5
y = 2
​
print(x % y)
x = 2
y = 5

print(x ** y) #same as 2*2*2*2*2
x = 15
y = 2

print(x // y)

#the floor division // rounds the result down to the nearest whole number
x = 5

print(x)
x = 5

x += 3

print(x)
x = 5

x -= 3

print(x)
x = 5

x *= 3

print(x)
x = 5

x /= 3

print(x)
x = 5

x%=3

print(x)
x = 5

x//=3

print(x)
x = 5

x **= 3

print(x)
x = 5

x &= 3

print(x)
x = 5

x |= 3

print(x)
x = 5

x ^= 3

print(x)
x = 5

x >>= 3

print(x)
x = 5

x <<= 3

print(x)
x = 5
y = 3

print(x == y)

# returns False because 5 is not equal to 3
x = 5
y = 3

print(x != y)

# returns True because 5 is not equal to 3
x = 5
y = 3

print(x > y)

# returns True because 5 is greater than 3
x = 5
y = 3

print(x < y)

# returns False because 5 is not less than 3
x = 5
y = 3

print(x >= y)

# returns True because five is greater, or equal, to 3
x = 5
y = 3

print(x <= y)

# returns False because 5 is neither less than or equal to 3
x = 5

print(x > 3 and x < 10)

# returns True because 5 is greater than 3 AND 5 is less than 10
x = 5

print(x > 3 or x < 4)

# returns True because one of the conditions are true (5 is greater than 3, but 5 is not less than 4)
x = 5

print(x > 3 or x < 4)

# returns True because one of the conditions are true (5 is greater than 3, but 5 is not less than 4)
x = ["apple", "banana"]
y = ["apple", "banana"]
z = x

print(x is z)

# returns True because z is the same object as x

print(x is y)

# returns False because x is not the same object as y, even if they have the same content

print(x == y)

# to demonstrate the difference betweeen "is" and "==": this comparison returns True because x is equal to y
x = ["apple", "banana"]
y = ["apple", "banana"]
z = x

print(x is not z)

# returns False because z is the same object as x

print(x is not y)

# returns True because x is not the same object as y, even if they have the same content

print(x != y)

# to demonstrate the difference betweeen "is not" and "!=": this comparison returns False because x is equal to y
x = ["apple", "banana"]

print("banana" in x)

# returns True because a sequence with the value "banana" is in the list
x = ["apple", "banana"]

print("pineapple" not in x)

# returns True because a sequence with the value "pineapple" is not in the list
# Python program to show
# bitwise operators

a = 10
b = 4

# Print bitwise AND operation
print("a & b =", a & b)

# Print bitwise OR operation
print("a | b =", a | b)

# Print bitwise NOT operation
print("~a =", ~a)

# print bitwise XOR operation
print("a ^ b =", a ^ b)
# Python program to show
# shift operators

a = 10
b = -10

# print bitwise right shift operator
print("a >> 1 =", a >> 1)
print("b >> 1 =", b >> 1)

a = 5
b = -10

# print bitwise left shift operator
print("a << 1 =", a << 1)
print("b << 1 =", b << 1)




