Assignment Operators
Assignment Operators
name = "Adrika"
age = 13
# name += " Bhadauria" # name = name + " Bhadauria"
# print(name)
# name *= 3 # name = name * 3
# print(name)
age += 1 # age = age + 1
print(age)
age -= 1 # age = age - 1
print(age)
age *= 2 # age = age * 2
print(age)
age //= 2 # age = age // 2
print(age)
age /= 2 # age = age / 2
print(age)
Post a Comment