The first type of code we wrote this semester
What is a print statement?
This data type deals with whole numbers
What is an integer?
the three types of conditional statements
What are if, elif, and else?
This loop is typically used when iterating over a list or range
What is a For Loop?
The purpose of a list
What is storing multiple pieces of data at a time?
These need to be used when typing words or phrases in a print statement
What are quotations?
The abbreviation for strings
What is str?
This word means "Else If"
What is "Elif"?
This loop continues until a condition is false
What is a While Loop?
This is the number index that every list begins with
What is Zero?
The set of rules that a language uses to create structure
What is the definition of syntax?
This happens to the decimal when I convert a float into an integer
What is it rounds up or down depending on the value? (.4 and less down, .5 and more up)
The purpose of this operator: >=
What is greater than or equal?
the set of all possible values between 2 numbers
What is the range?
Using this command will display a single item from a given list
What is the index command?
This command allows the user to print on a separate line
What is \n?
The four main data types used in Python
What are Strings, Integers, Floats, and Booleans?
The output for this code:
x = 5
if x > 10:
print("Big")
else:
print("Small")
What is "Small"?
The number of times a program is run
What is an iteration?
These are the 3 ways that items cam be added to an already existing list
What are append, insert, and extend?
Find the error in the following program:
Color = input "What is your favorite color?"
print("I love " + Color + "too!!")
What is no parentheses () around "What is your favorite color"?
The output for this code:
Points = 77
print(float(Points))
Find the error in the following code:
x = 85
if x < 59:
print("Fail")
elif x > 60:
print("Pass")
What is no indention on print statements?
The output for the following for loop:
for i in range(2,269,2):
print(i)
What is every even number between 2 and 268?
These are the differences between a List and a Tuple (must name both for points)
What is Tuples are permanent and lists are not, and tuples use parentheses and lists use brackets?