Definitions
Syntax
Functions
What does that code do?
What's wrong with that code
100
What are instructions for computers called?
Code or Programs
100

What symbol is used to assign a variable

An equal sign ( = )

100

Give an example of a function that comes with python (one that you did not write)

What is print() / int() / input() (randint() & sleep() are also ok)

100


prints "Hello World"?

100

The answer is not saved to a variable

200

What do we call how much space there is after an if statement, while loop, for loop, and function

Indentation

200

What 3 letter word is used to define a function

def

200

What function displays words to your output? (Prints stuff)

print()?

200

prints "hotdog"?

200

x = 5 is supposed to be x == 5

300

What repeats code forever until the condition is False

While Loops

300

What is a symbol you can't use to name a variable

^&*-!=@{#}[$]:%"'<>?,./`~ (Any of these answers are valid)

300

Which python function asks the user for an answer

input()

300

prints "Hello" forever?

300

The code is time.sleep(5)

400

What are blocks of code that are run whenever they are called

Functions

400

What symbol is used at the end of if, for, when, and functions?

A colon? ( : )

400

Which python function turns strings into integers

int()?

400

prints the numbers 1 2 3 4?

400

The elif has the wrong indentation

500
What word do we need to use libraries like random and time?

import

500

Using a function from a library (like randint() or sleep() ) needs to include the name of the library where?

Right before the function ( time.sleep() )

500

Which python function from the random library gives you a random number within a range of two numbers entered

What is random.randint()

500

prints 0 1 2 3 4 5?

500

The function being called?

M
e
n
u