qobjects = [
{
question: "Python Lists can be used as arrays.
What will be the result of the following code:fruits = ['apple', 'banana', 'cherry']",
options: [
"apple",
"banana",
"cherry"
],
correct: 0
},
{
question: "What is a correct Python List method used to return the number of elements in a list?",
options: [
"
print(fruits[0])count()",
"len()",
"length()"
],
correct: 1
},
{
question: "What will be the result of the following code:fruits = ['apple', 'banana', 'cherry']",
options: [
"1",
"2",
"3",
"4"
],
correct: 2
}
]
print(len(fruits))