Variables
Data Types
Loops & Flow
Working with Functions
Basics & Input
100

What symbol is used to assign a value to a variable?

=

100

What numeric data type represents a whole number with no decimals?

int (or Integer)

100

Which loop is best used when you want a block of code to repeat infinitely as long as a condition remains true?

while loop

100

What keyword is used to create or define a brand new function?

def

100

What built-in function displays text outputs directly to the console screen (AKA the terminal or shell)?

print()

200

True or False: 3_score is a valid Python variable name.

False (Variable names cannot start with a number)

200

What data type represents text data, always wrapped in quotes?

str (or String)

200

What statement is used inside a loop to immediately exit it completely?

break

200

What keyword does a function use to send a value back to the code that called it?

return

200

What function pauses the program to collect text data typed in by the user?

input()

300

If x = 5, what will x equal after you run the line

x = x + 2

?

7

300

What data type can only hold one of two values: True or False?

bool (or Boolean)

300

What mathematical symbol is used to check if two values are exactly equal to each other in an if statement?

== (double equals)

300

When defining a function like

def greet(name):

what do we call the variable name inside the parentheses?

a parameter (or argument)

300

What character must you place at the very end of an if, for, or def line before indenting the code below it?

a colon ( : )

400

True or False: The variable names Score and score are treated as the same variable by Python.

False (Python is case-sensitive)

400

What data type represents numbers with decimal points, like 3.14?

float

400

What block is placed at the very end of an if and elif chain to handle any cases that didn't match?

else

400

True or False: Code written inside a function will run automatically the moment the script is executed, even if you don't call the function.

False (Functions only run when they are explicitly called)

400

The input() function always captures data as what specific data type, even if the user types a number?

A string (str)

500

What type of error will Python throw if you try to use a variable name that you haven't created yet?

NameError

500

What Python function can you use to check what data type a variable currently holds?

type()

500

How many times will a loop run if it starts with 

for i in range(5):

?

Bonus: What will i be in each loop?

5 times (It counts 0,1,2,3,4)

500

If a function doesn't have a return statement, what special value does it automatically give back when called?

None

500

What is the term for combining two strings together using the operator, like "cat" + "dog"?

Concatenation