This statement checks the validity of a condition before creating a separate path for when the condition is true.
what is an if statement?
this is the statement within a for loop
what is the body of the loop?
Variables of this 'type' are surrounded by quotation mark?
what are strings?
This built-in Python function returns the Number of instances a given value is present in the data
what is count()?
data structure contains a collection of items referenced under 1 specific variable
What is a list?
using this operator returns True if at least one of the given conditions are true.
What is the OR operator?
This keyword is used when trying to force stop a loop before it finishes
what is a break statement?
User input is automatically displays its message when you create the variable: True or False
True
this function is used to add an item to a specific index in the list
what is insert()
This function finds the smallest numeric value in a list.
what is min()?
When does an else statement run?
when all elif and if statements above it return as False
for x in list1:
print(x)
what does the code do
traverse through list and displays every item in the list
Used when seeking information from the user of the program
What is input()?
When using these three functions, you put the name of the list inside parameter(parentheses)
What is min max and len? (100pt for each answer)
To determine if a variable is not present in some data, you would use this keyword.
What is not in?
This statement only runs when all if and elif statements above it returns false.
what is an else statement?
To travel through or run through
traverse
This functions is used to convert a variable of another type into type string.
What is str()
This function is used to replicate the list to be edited.
what is copy()?
This function is use to create a set of numbers between a specified start and finish
what is range()?
a = ['Lies', 'You', 'Tell']
b = a [2]
what is b?
'Tell'
When does an else statement attached to a for loop run?
if the loop has run all the way through without breaking
This operator is used when creating a variable and simultaneously adding to the variable
( += ) plus sign and equal sign
a =['I', 'Just', 'Want', 'To', 'Be', 'Rich']
b = a [-4]
what is b?
'Want'
These are numbers used to refer to a specific item in a list
what are indexes?