Python Flashcards
%
modulus: X divided by Y with J remaining
eg. 100 % 16 = 4
order of operations
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
variable
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.
If you get stuck with an exercise
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.