Pythons on Planes
Indiana Jones Hates Python(s)
Monty Python
The (Syntax) Error of our Ways
Not Just for Snakes
100

Used to add a single element to the end of a list

What is append()

100

Used to remove an item from a list by index number

What is pop()

100

Used to convert a piece of data into a Boolean

What is bool()

100

print("hello world"

What is a missing parenthesis

100

Symbol used to see if two items are identical

What is ==

200

Method used to divide a string into a list

What is split()
200

This statement checks a single condition. It comes first in the order of condition-checking statements

What is an if statement

200

Used to display information on the screen

What is print()

200

name = "Hello Jane"

print("name")

What is name shouldn't have quotation marks around it since it is a variable, not a string

200

Used to gather information from the user

What is input()

300

Used to store information in Python

What is a variable

300
The word that we use when we are talking about combining strings using a +

What is concatenation

300

my_string = "Hello, world!"

first_char = my_string[0]

print(first_char)

What is H

300

name = "Jane"

if name == "Jane"

    print("Hello Jane")

elif name == "Jack":

    print("Hello Jack")

What is we are missing a colon at the end of the if statement

300

Used to convert a piece of data to a string

What is str()

400

This type of statement checks any conditions that come after the first one

What is an elif statement

400

This arithmetic operator divides but returns the remainder

What is modulus/modulo %

400

my_string = "Hello, world!"

substring = my_string[7:12]

print(substring)



What is world

400

name = input("What is your name?")

print("Hello" name)

What is we are missing the plus sign to combine the string and variable together

400

This statement is what occurs if every condition previously checked was false

What is an else statement

500

The third number in the parentheses is known as...


ex:

for x in range(0, 10, 2):

What is step

500
Another way of writing this code:


people_in_line = people_in_line + 1

What is people_in_line += 1

500

Allows you to iterate over a sequence of items in Python

What is a for loop

500

name = "Jane"

if name = "Jane":

    print("Hello Jane")

elif name == "Jack":

    print("Hello Jack")

What is we are missing an equal sign in our if statement, since we use two equal signs to compare things

500

Used to convert a piece of data into a float

What is float()