WorksheetsPython Collections
Total questions: 10
Worksheet time: 5mins
IndexError: list index out of range
13
10
12
9
Orange
Mango
Apple
Orange
Mango
Mango
Orange
Apple
Mango
Apple
Apple
Mango
ValueError: list.remove(x): x not in list
Apple
Mango
Orange
orange
Kiwi
Mango
Orange
Apple
Error
Error
[6.7, 7.7, 8.2, 8.1, 7.9, 5.8]
[5.8, 6.7, 7.7, 8.2, 8.1, 7.9]
[6.7, 7.7, 5.8, 8.2, 8.1, 7.9]
[6.7, 7.7, 8.2, 8.1, 7.9]
(6.7, 7.7, 8.2, 8.1, 7.9)
Error
6.7, 7.7, 8.2, 8.1, 7.9
[6.7, 7.7, 8.2, 8.1, 7.9]
"6.7, 7.7, 8.2, 8.1, 7.9"
Choose the appropriate code snippet which prints the following output.
My grade is 7
# For the given code snippet, choose the appropriate code snippet to print the mark of NSS.
print(marks['Non-academics']['NSS'])
print(marks['NSS'])
print(marks['NSS'])
print(marks['Non-academics'])
print(marks)
Error
Physics
80
Physics : 80
{'Physics': 80, 'Chemistry': 88, 'Mathematics': 92}
Error
( )
{'Physics': 80, 'Chemistry': 88, 'Mathematics': 92}
{'Chemistry': 88, 'Mathematics': 92}
{'Physics': 80, 'Chemistry': 88}
