Datatypes
Functions, if/else, loops
Operators
Lists + Dictionaries
Mystery
100

A number with a decimal point

What is a float?

100
The first word of a second conditional statement:

What is "elif?"

100

The operator for multiplication.

What is *?

100
An empty list titled "nums".

What is nums = []?

100

Greg's best friend's full name in Diary of Wimpy kid.

Who is Rowley Jefferson?

200

Can include letters, numbers, or symbols.

What is a string?

200

To create a function called "banana" using the input "apple", you would first type...

What is

def banana(apple):

200

The modulo.

What is the operator that returns the remainder of two numbers on dividing them?

200

The function to find how many elements there are in a list.

What is "len()"?

200

Complete the song lyric:

Soon may the wellerman come, to bring us sugar and tea and ___.

What is "rum"?

300

The syntax to transform a float/int into a string.

What is "str()"?

300

A statement that tests if a number "x" is even or odd and prints the output.

if x%2 = 0:

    print("x is even")

else:

  print("x is odd")

300

(3 * 4) ** 2

What is 144?

300

Appends the value 42 to a list titled "scores".

What is scores.append(42)?

300

The tip of a shoelace.

What is an aglet?

400

In order to multiply the user input of "x" by 5, you would write this...

What is:

x = float(input("x:"))

OR x = int(input("x:"))

ans = x * 5

400

Build a function that finds the average of a list of numbers called "numbers".

What is:

def average(numbers):

total = float(sum(numbers))

avg = total/len(numbers)

return avg

400

a = 23%4

b = a ** 3

b = ...

What is 27?

400

A dictionary named "groceries" with the keys "apples", "grapes", and "bread", and the corresponding values "4.00", "7.50", and "5.50".

What is

groceries = {"apples": 4.00, "grapes": 7.50, "bread": 5.50}

400

Complete the script:

Lord Farquaad: "Run run run as fast as you can, you can't catch me, I'm the gingerbread man."

Gingy: "You're a _____".

What is, "you're a monster!"?

M
e
n
u