qobjects = [
{
question: "What is a correct syntax for looping through the items of a list?",
options: [
"for x in ['apple', 'banana', 'cherry']:",
"
print(x)for x in ['apple', 'banana', 'cherry']",
"
print(x)foreach x in ['apple', 'banana', 'cherry']",
],
correct: 0
},
{
fillintheblanks: "exercise_lists_loop1.htm"
},
{
question: "What is a correct syntax for looping through the items of a list?",
options: [
"
print(x)print(x) for x in ['apple', 'banana', 'cherry']",
"[print(x) for x in ['apple', 'banana', 'cherry']]",
"for x in ['apple', 'banana', 'cherry'] print(x)"
],
correct: 1
}
]