No student devices needed. Know more
14 questions
What is a list in python?
A collection of variables
A collection of items assigned to a single variable
A statement that cant be changed
A Christmas list
Which of these codes is correct for creating a list of numbers?
num = ('10','29','37','109')
num = ['10','29','37','109']
num == ('10','29','37','109')
num = ['10 29 37 109']
What is the index number for 'Spain'?
['England','Brazil','Spain','France']
0
1
2
3
How do i remove something from a list?
variable.append()
variable.delete()
variable.remove()
variable=(new variable)
Which code would i use to add an item to a list?
variable.add()
variable.append()
append.variable()
add.variable()
What is used to separate elements in a list?
Bracket
Comma
Full Stop
Space
Why is using lists beneficial?
Shorter Code
More Accurate
It takes less time for the program to run
Its not beneficial
variable.sort() will do what?
Sort the list into alphabetical order
Sort the list into reverse order
Create a new list
Error
What brackets are used to create a list?
()
[]
What sort of loop is this?
Count Controlled
Condition Controlled
What does the '#' allow you to do?
Repeat code
Comment on code
Print code
End code
A condition controlled loop is...
A while loop
A for loop
Which of these operators means EQUAL TO?
'='
'=>'
'<='
'=='
What will this code do?
Print Numbers 1-11
Print Numbers 1-10
Print Numbers 2-10
Print Error
Explore all questions with a free account