Python 1
Python 2
Python 3
i want a break from python 1 (class bday)
i want a break from python 2 (General)
100

What file extension do python files have?

.py

100

Which variable type stores decimal numbers?

float

100

What is a collection of objects inside "[" and "]" called?

List

100

Who was born on April 8th?

Blake

100

What's found in the nucleus of an atom?

Protons and Neutrons.

200

What does the function input() do, and what type of object does it return?

allows the user to type input. returns a string

200

What is the python function to get the length/size of a object?

len()
200

what keyword defines a function?

def

200

Who was born on August 21st?

Jillian

200

What is your body’s largest organ?

Skin

300

To use modules in another Python script, you must first ______  the module.

import

300

What are these symbols called?

+,  ==,  - ,  / ,  // ,  *,  **, %

operators

300

This function displays the plot to the user.

plt.show()

300

Who was born on November 12th?

Riley

300

This French phrase, often used in English, means “already seen.”

déjà vu

400

This keyword exits the function and sends a value back to the caller.

return

400

What is the output?

number = "7"

result = number*3

print(result)

777

400

You use these functions to label the x-axis and y-axis of a plot.

plt.xlabel() and plt.ylabel()

400

Who was born on May 31st?

Connor

400

What does DNA stand for?

Deoxyribonucleic Acid

500

Find the error:

def add_numbers(a, b):    

       return a + b 

print(add_numbers(2))

add_numbers() function needs two arguments

500

Find the error:

items = [1, 2, 3]

items[3] = 4

print(items)

Index 3 is out of range since items only has three elements (0, 1, and 2).

500

DAILY DOUBLE, Find the error:

import matplotlib.pyplot as plt

plt.plot([1, 2, 3, 4])

plt.title = "Sample Plot"

plt.show()

plt.title = "Sample Plot" should be plt.title("Sample Plot") to properly set the title.

500

Who was born on January 11th?

Ryan

500

Which is the strongest muscle in the human body?

Jaw Muscle

M
e
n
u