NEW
Font size
WorksheetsPython: Strings and Lists
Total questions: 12
Worksheet time: 12mins
Q: What does the code print?
der eulb wolley neerg
r b y g
green
red blue yellow green
re blu yello gree
Q: What does the code print?
0 red: 1 blue: 2 yellow: 3 green:
0 r: 1 b: 2 y: 3 g:
1 blue: 3 green: 2 yellow: 0 red:
1 b: 3 gre: 2 ye: 0 :
Q: What does the code print?
0
blue
b
None
Q: What does the code print?
x 0
x 3
li 3
li 0
None of the above
Q: What does the code print?
x 0
a 3
c 1
c 3
None of the above
Q: What does the code print?
0 1 2 3 4 5 6 7 8 9
1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9 10
Q: What does the code print?
1 4 7
1 4 8
1 3 5 7
1 3 5 7 9
Q: What does the code print?
['basketball'] [''basketball', 'softball'] ['baseball', 'swimming'
['basketball'] ['tennis', 'basketball', 'softball'] ['baseball']
['basketball'] ['tennis', 'basketball', 'softball'] ['baseball', 'swimming']
None of the above
Q: What does the code print?
['softball']
te ba so gy so ba sw
['tennis', 'basketball']
ten bas sof gym soc bas swi
None of the above
Q: What does the code print?
['tenni', 'baketball', 'oftball', 'gymnatic', 'occer', 'baeball', 'wimming']
[]
['basketball', 'softball', 'soccer', 'baseball']
None of the above
Q: What does the code print?
I love python
[I, love, python]
['I', 'love', 'python']
None of the above
Q: What does the code print?
ystery quiz
mystery quiz
yst qui
mystery qui
ystery qui
