Which choice creates a list of foods?*
foods = {"banana", "apple", "burrito"}
foods = ["banana", "apple", "burrito"]
foods = ("banana", "apple", "burrito")
None of the options
foods = ["banana", "apple", "burrito"]
If we have a list named colors, which of the following gives the length of the list?*
colors.length()
len(colors)
colors.len()
length(colors)
len(colors)
What is the output of the following code snippet?*
for num in range(5):
print(num)
1
2
3
4
5
0
1
2
3
4
5
1
2
3
4
0
1
2
3
4
0
1
2
3
4
Which keyword is used to create a function in Python?*
function
def
define
fun
def
Which keyword is used to send data out of a function?*
push
return
send
take
return
Which operator is used to multiply two numbers?*
%
/
*
&