# Operators in Python


# arthmatical operators
# [+ addition] ,[- sustraction], [/ divation] , [* Multiplication] , [// diviion retarn int value], [% moduls]


num = 12 
string1 = 'Hello'
string2 = 'World!'

print(num + 12) # print 12 + 12 => 24
print(num - 5) # print 12 - 5 => 7
print(num * 4) # print 12 * 4 => 48
print(num / 2) # print 12 / 2 => 6.0 [ return floating alue ]
print(num // 3) # print 12 // 3 => 4 return int value
print(num % 5) # print 12 % 5 =>

print(num + 123 ) # print 12 + 123 => 135
print(string1 + ' ' + string2 ) # used + to concoatanite tow string

print()

print('*' * 40)
print()

# compartion  operators

# == , =!, >, <, >=, <=,

# return eiether True or False if the condition is true will return true other wase will return false

print(5 == 5) # True
print(5 != 5) # False
print(6 > 5)  # True
print(6 < 5)  # False
print(6 >= 6)# True
print(6 <= 6) # True

print('*' * 40)
print() 

# assignment operators

num = 100

num += 10 # num = num + 10 => 110
print(num)

num -= 20
print(num) # 110 - 20 => 90

num *= 2
print(num) # 90 * 2 => 180

num  /= 2
print(num) # 180 / 2 => 90.0

num //= 2
print(num) # 90 // 2 => 45

num **= 2
print(num) # 45 ** 2 => 2025.0

num %= 2
print(num) # 2025.0 % 2 => 1.0


























