Loading quizzes...
Loading quizzes...
Class 12 • Revision of Python Basics
Other sets in this chapter
Which of these is a valid list?
How to add an element at the end of a list?
What is the result of [1, 2] + [3]?
How to insert at index 1?
Which method removes and returns the last item?
What is the output of [1, 2, 3][1]?
How to sort a list in place?
Result of len([1, [2, 3]])?
How to remove a specific value 'x'?
What is [0] * 3?
Can lists contain different data types?
How to clear all items?
Index of 5 in [1, 5, 2]?
Result of [1, 2, 3].pop(0)?
What is [1, 2, 3][::-1]?
Effect of L.reverse()?
What is L.count(10) in [10, 20, 10]?
How to copy a list L1 to L2 safely?
Which method adds multiple items from another list?
Result of [1, 2] * 2?
Is 10 in [1, 5, 10]?
What happens if index is out of range?
Result of max([5, 10, 2])?
Result of min([5, 10, 2])?
Result of sum([1, 2, 3])?
How to get index of last item?
What is list('abc')?
Output of sorted([3, 1, 2], reverse=True)?
Can we use 'del' on a slice?
Which represents an empty list?
0 / 30 answered