Arithmetic Operators

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/7

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

8 Terms

1
New cards

Addition (+)

Adds two values together.
a = 10
b = 5

sum = a + b

print("Sum:", sum)

2
New cards

Subtraction (-)

Subtracts one value from another.
a = 10
b = 5

difference = a - b

print("Difference:", difference)

3
New cards

Multiplication (*)

Multiplies two values.
a = 10
b = 5

product = a * b

print("Product:", product)

4
New cards

Division (/)

Divides one value by another.
a = 10
b = 5

quotient = a / b

print("Quotient:", quotient)

5
New cards

Modulus (%)

Computes the remainder after division.
a = 10
b = 5

remainder = a % b

print("Remainder:", remainder)

6
New cards

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)

7
New cards

Exponentiation (**)

Raises one value to the power of another.
a = 10
b = 5

exponentiation = a ** b

print("Exponentiation:", exponentiation)

8
New cards

Explore top flashcards