Assign the variable a to 2. Assign the variable b to 3. Print the sum of the variables.
a = 2b = 3print(a + b)
Assign the variable a to 2. Assign the variable b to 3. Print the difference of a and b.
a = 2b = 3print(a - b)
Assign the variable a to 11 and the variable b to 7. Print the product of a and b.
a = 11b = 7print(a * b)
Assign the variable a to 121 and the variable b to 11. Print the quotient of a and b.
a = 121b = 11print(a / b)
Assign the variable a to 121 and the variable b to 10. Print the result of a modulus b.
a = 121b = 10print(a % b)
Assign the variable a to 2 and the variable b to 6. Print the result of a raised to the power of 6.
a = 2b = 6print(a ^ b)
Assign the variable a to 2 and the variable b to 2. Print the result of a raise to the power of negative b.
a = 2b = 2print(a ^ -b)