The common arithmetic and comparison operators Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

How do we represent exponentiation in python?

A

- Power.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is Modulus?

A
  • MOD
  • Remainder of a division.
    7/2
    remainder
    24,6,7 so remainder one.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is div?

A
  • How many times a number goes into another number.
    7/2
    2 can go into 7 3 times.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does == mean?

A
  • equals to.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does != mean?

A

Not equals to.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does < mean?

A
  • Less than.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does <= mean?

A

Less than and equal to.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does > mean?

A
  • Greater than.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What does >= mean?

A
  • Greater than and equal to.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly