What file extension do python files have?
.py
Which variable type stores decimal numbers?
float
What is a collection of objects inside "[" and "]" called?
List
Who was born on April 8th?
Blake
What's found in the nucleus of an atom?
Protons and Neutrons.
What does the function input() do, and what type of object does it return?
allows the user to type input. returns a string
What is the python function to get the length/size of a object?
what keyword defines a function?
def
Who was born on August 21st?
Jillian
What is your body’s largest organ?
Skin
To use modules in another Python script, you must first ______ the module.
import
What are these symbols called?
+, ==, - , / , // , *, **, %
operators
This function displays the plot to the user.
plt.show()
Who was born on November 12th?
Riley
This French phrase, often used in English, means “already seen.”
déjà vu
This keyword exits the function and sends a value back to the caller.
return
What is the output?
number = "7"
result = number*3
print(result)
777
You use these functions to label the x-axis and y-axis of a plot.
plt.xlabel() and plt.ylabel()
Who was born on May 31st?
Connor
What does DNA stand for?
Deoxyribonucleic Acid
Find the error:
def add_numbers(a, b):
return a + b
print(add_numbers(2))
add_numbers() function needs two arguments
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).
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.
Who was born on January 11th?
Ryan
Which is the strongest muscle in the human body?
Jaw Muscle