NEW
Font size
WorksheetsPython programming
Total questions: 15
Worksheet time: 4mins
What is the output?
[1, 2, 3] [1, 2, 3, 4]
[1, 2, 3, 4] [1, 2, 3, 4]
[1, 2] [1, 2, 3, 4]
Error
What happens?
Stores successfully
Error: lists are unhashable
Error: dictionary limit reached
None
What is the output?
2.5 and 2
2 and 2.5
2.5 and 2.5
Error
What is the output?
{"a": 1, "b": 2}
{"a": 100, "b": 2}
{"a": 100}
Error
What is the output?
1
"a"
Error
None
What is the output ?
<class 'int'> and <class 'tuple'>
<class 'tuple'> and <class 'tuple'>
<class 'int'> and <class 'int'>
Error
What is the output ?
[5, 4, 3, 2, 1]
[1, 2, 3, 4, 5]
Error
None
What is the output?
None
Error
True
False
What is the output?
1 and 0
True and False
1 and False
Error
What is the output?
2
1
0
3
What is the output ?
abc
applebanana
Error
applecherry
What is the output?
1 4 9
1 2 3
(1, 4, 9)
Error
What is the output?
a 1; b 2;
a; b;
1; 2;
Error
What is the output?
[1, 2, 3, 4, 2, 4, 6, 8]
[1, 2, 3, 4, 2, 4, 6]
[1, 2, 3, 4, 2, 4]
Error
What is the output?
[2]
[1, 2, 3]
[2, 3]
[]
