85. What will be printed when the following code is executed?
Anonymous Quiz
67%
[2, 4, 5, 6, 7, 8, 9, 10]
8%
[2, 4, 5, 6, 7, 8, 9]
15%
TypeError
11%
[2, 4, 6, 8, 10]
86. What will be the last line of the output?
Anonymous Quiz
30%
The capital of Norway is Paris
14%
The capital of France is Oslo
32%
TypeError
24%
The capital of Norway is Oslo
87. What will be printed when the following code is executed?
Anonymous Quiz
27%
IndentationError
44%
infinite loop
14%
1@3@7@15@31@63@
14%
1@3@7@15@31@63@127@255@511
WEAKLY PYTHON MILLIONAIRE DIGEST 17.10-23.10.2022
~ Topic #7 “Topics Recap”
~ Average accuracy 38%
~ Average involvement 33 people (12%)
N.B.
🐍 Be very careful while writing or reading the code - even minor mistakes can stop the program (e.g. missing parentheses, “=“ instead of “==“ and vice versa)
🐍Keep in mind that sometimes it is necessary to convert elements’ type in order to execute an operation (e.g. it is impossible to use len() with integer type)
🐍 Use **kwargs when you want to pass a variable number keyword arguments (keys and values)
🐍Pay attention to defining conditions in “while” loop: it may become an infinite loop if the while condition never becomes false (e.g. while True: … ; while range(x,y): … ; etc.)
~ Topic #7 “Topics Recap”
~ Average accuracy 38%
~ Average involvement 33 people (12%)
N.B.
🐍 Be very careful while writing or reading the code - even minor mistakes can stop the program (e.g. missing parentheses, “=“ instead of “==“ and vice versa)
🐍Keep in mind that sometimes it is necessary to convert elements’ type in order to execute an operation (e.g. it is impossible to use len() with integer type)
🐍 Use **kwargs when you want to pass a variable number keyword arguments (keys and values)
🐍Pay attention to defining conditions in “while” loop: it may become an infinite loop if the while condition never becomes false (e.g. while True: … ; while range(x,y): … ; etc.)
88. What will be printed when the following code is executed?
Anonymous Quiz
81%
t
12%
i
3%
h
4%
error
89. What will be printed when the following code is executed?
Anonymous Quiz
6%
VBN#CXZ*MKO!OJH!!
6%
error
11%
VBN!CXZ#MKO*OJH!!
77%
VBN#CXZ!MKO*OJH!!
90. What will be printed when the following code is executed?
Anonymous Quiz
35%
error
19%
True
45%
False
1%
Yes
91. What will be printed when the following code is executed?
Anonymous Quiz
19%
NameError
51%
50
12%
10
17%
50.0
92. What will be printed when the following code is executed?
Anonymous Quiz
8%
IndexError
61%
7
10%
infinite loop
21%
21961
93. What will be printed when the following code is executed?
Anonymous Quiz
12%
TypeError
29%
(12, 53)
49%
(3, 8)
10%
[3, 8]
94. What will be printed when the following code is executed?
Anonymous Quiz
20%
['Emma', 'Rob']
44%
['Maria', 'Emma', 'Rob']
24%
['cat', 'cat', 'mouse']
11%
['cat', 'mouse']