Dayrvia
Py

Python · List slices · Practice questions

Try 2 questions on Python · List slices, then read the explanations and review the related concepts.

Practice questions

Choose an answer and move to the next question. Grade the last one to see explanations and review links.

2 questions
Q1 What will this print?
items = ["pen", "cup", "book"]
print(items[1])
Q2 Which list is printed?
a = [3, 5, 7, 9]
print(a[:2])
Original practice questions written for Dayrvia.