1/7
Looks like no tags are added yet.
Name  | Mastery  | Learn  | Test  | Matching  | Spaced  | 
|---|
No study sessions yet.
Addition (+)
Adds two values together.
a = 10
b = 5
sum = a + b
print("Sum:", sum)
Subtraction (-)
Subtracts one value from another.
a = 10
b = 5
difference = a - b
print("Difference:", difference)
Multiplication (*)
Multiplies two values.
a = 10
b = 5
product = a * b
print("Product:", product)
Division (/)
Divides one value by another.
a = 10
b = 5
quotient = a / b
print("Quotient:", quotient)
Modulus (%)
Computes the remainder after division.
a = 10
b = 5
remainder = a % b
print("Remainder:", remainder)
Floor Division (//)
Divides one value by another and returns the integer quotient.
a = 10
b = 5
floor_division = a // b
print("Floor Division:", floor_division)
Exponentiation (**)
Raises one value to the power of another.
a = 10
b = 5
exponentiation = a ** b
print("Exponentiation:", exponentiation)