Python Flashcards

1
Q

%

A

modulus: X divided by Y with J remaining

eg. 100 % 16 = 4

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

order of operations

A

PEMDAS or PE(M&D)(A&S)

you do the multiplication and division (M&D) in one step, from left to right, then you do the addition and subtraction in one step from left to right

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

variable

A

name for something

Programmers use these variable names to make their code read more like English and because they have lousy memories. If they didn’t use good names for things in their software, they’d get lost when they tried to read their code again.

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

If you get stuck with an exercise

A

Write a comment above each line explaining to yourself what it does in English.
Read your .py file backward.
Read your .py file out loud, saying even the characters.

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