What does cd do?
Change directory
What sort of error might it be when you're missing some required parentheses?
Syntax Error
What does DRY stand for?
Don't Repeat Yourself
What sort of data type would the number 5.67 be?
Float
What is the difference between an absolute and relative path?
Absolute paths are the entire path including the drive and relative paths are only the path info in reference to another file/directory
What sort of error would this cause:
int("abc")
ValueError
What is the difference between printing and returning a value
Returning it actually passes on the data; printing it is largely only for the sake of human viewing via the terminal.
What does importing something allow you to do?
Use functions from the imported module within your current file
When copying a file, what is the proper order of the command (hint: it can be moved and renamed)
cp [original file path] [copy's new file path]
What sort of other error might result in a runtime error?
Often math/type/logical errors
What do all relational operations (e.g. ==, ||) evaluate to?
A boolean value
What are the three steps to a unit test?
Setup, Invoke, Analyze
What are the 5-6 most important git commands?
Git pull, Git clone, Git add, Git commit, Git push
Optional: Git status
What is an example of a type error?
(Anything that involves trying to use an operation/function with an incorrect type)
What is the difference between an argument and a parameter?
A parameter is a placeholder variable in a function definition, while an argument is the value actually passed into it
What is a local variable?
A variable that only has scope within where it is created (e.g. something created within a function cannot be used outside of the function)
What is the difference between cat and tail?
Cat prints the entire file to the terminal, while tail prints a certain amount of lines from the end
What is the most common error in Python?
IndentationError
What are the restrictions for naming a function?
The same as naming a variable
Where is Jennie's favorite study spot?
The MAGIC labs