On the Command Line
Check Your Syntax
All Kinds of Data Types
Loops, Lists, or Conditions
Methods and Fun(ctions)
100

This command is used to change your current working directory in the command line.

What is cd?

100

In Python, this symbol is used to add comments to your code.

What is # (hashtag)?

100

This Python data type represents whole numbers like 1, 42, or -72

What is an integer?

100

This technique is used to access an item in a collection by its position, with the first position starting at 0 in Python.

What is indexing?

100

To define a function in Python, start with this keyword.

What is def?

200

This command shows the absolute path of your current location in the file system.

What is pwd?

200

This symbol is required to assign a value to a variable in Python.

What is or an equals sign?

200

This Python data type is used to represent text, enclosed in either single or double quotes.

What is a string?

200

This type of loop is used to iterate over a sequence, such as a list or range of numbers.

What is a for loop?

200

To display the phrase “Hello, World!” on the console, use this in-built Python function.

What is print()?

300

Use this command to create a new folder

What is mkdir?

300

In Python, this is the spacing at the beginning of a line that shows which lines of code belong together.

What is indentation?

300

This Python data type has only two possible values, often used to represent truth or falsity in logical statements.

What is a boolean value?

300

 These keywords are used to combine multiple conditions, checking if all are true or if at least one is true.

What is "and" and "or"?

300

This function lets a Python program pause and wait for the user to type something, which it stores as a string.

What is input()?

400

If you want to delete a file named old_data.csv, you’d use this command

What is rm?

400

This part of a Python script, usually at the top, allows you to bring in external tools like re and Counter to save time and enhance functionality.

What is importing libraries, packages, or modules?

400

This Python data type is an ordered collection of items, enclosed in square brackets, and can contain multiple types of elements like numbers, strings, or other collections.

What is a list?

400

These Python keywords are used together to control the flow of a program by assessing conditions and executing blocks of code depending on whether those conditions are met.

What is if, elif, and else?

400

This method is used to add a new item to the end of a list.

What is append?

500

Daily Double! This command allows you to view just the first 10 lines of a file.

What is head?

500

This error occurs when you forget to close parentheses or brackets in your Python code.

What is a SyntaxError?

500

Daily Double! Import this Python library to work with and analyze tabular data in .csv files

What is pandas?

500

This symbol is used to check if two values are equal in a conditional statement.

What is == or a double equals sign?

500

This is the term for a value that you pass into a function when you call it, allowing the function to perform operations using that value.

What is an argument?

M
e
n
u