The common arithmetic and comparison operators Flashcards
1
Q
How do we represent exponentiation in python?
A
- Power.
2
Q
What is Modulus?
A
- MOD
- Remainder of a division.
7/2
remainder
24,6,7 so remainder one.
3
Q
What is div?
A
- How many times a number goes into another number.
7/2
2 can go into 7 3 times.
4
Q
What does == mean?
A
- equals to.
5
Q
What does != mean?
A
Not equals to.
6
Q
What does < mean?
A
- Less than.
7
Q
What does <= mean?
A
Less than and equal to.
8
Q
What does > mean?
A
- Greater than.
9
Q
What does >= mean?
A
- Greater than and equal to.