64. What will the sixth line of the program’s result be?
Anonymous Quiz
5%
№6 color of rainbow is cyan
63%
№6 color of rainbow is blue
4%
№6 color of rainbow is green
29%
error
65. What will the third line of the program’s result be?
Anonymous Quiz
4%
№3 color of rainbow is orange
36%
№3 color of rainbow is yellow
3%
№3 color of rainbow is green
57%
error
66. What will be printed when the following code is executed?
Anonymous Quiz
56%
[2, 4, 5, 6, 7, 8, 9, 10]
9%
[2, 4, 5, 6, 7, 8, 9]
19%
TypeError
16%
[2, 4, 6, 8, 10]
67. What will be printed when the following code is executed?
Anonymous Quiz
64%
2
12%
3
12%
0
11%
TypeError
WEAKLY PYTHON MILLIONAIRE DIGEST 26.09-2.10.2022
~ Topic #4 “Introduction to Ordered Data Types and the “For” loop”
~ Average accuracy 44%
~ Average involvement 43 people (16%)
N.B.
🐍Pay attention to the range and steps you use for the range() function (e.g. range(2,10) means the range from 2 until 10 and not including 10)
🐍Be careful while using remove() in your code. After executing the x.remove(i) method, the array size changes. The loop jumps over the value and not all the elements you need will be deleted
🐍The () and [] parentheses have different meanings in the code
~ Topic #4 “Introduction to Ordered Data Types and the “For” loop”
~ Average accuracy 44%
~ Average involvement 43 people (16%)
N.B.
🐍Pay attention to the range and steps you use for the range() function (e.g. range(2,10) means the range from 2 until 10 and not including 10)
🐍Be careful while using remove() in your code. After executing the x.remove(i) method, the array size changes. The loop jumps over the value and not all the elements you need will be deleted
🐍The () and [] parentheses have different meanings in the code
68. What will be printed when the following code is executed?
Anonymous Quiz
7%
error
9%
['1' '2' '3' '4' '5' '6']
25%
[1, 2, 3, 4, 5, 6]
59%
['1', '2', '3', '4', '5', '6']
69. What will be printed when the following code is executed?
Anonymous Quiz
64%
UTN EHV
10%
error
11%
utn ehv
15%
USTON, WE HAVE
70. What will be printed when the following code is executed?
Anonymous Quiz
73%
ivanivanov_login
7%
ivanivanov
12%
IvanIvanov_login
8%
error
71. What will be printed when the following code is executed?
Anonymous Quiz
13%
B_be_i’ll
17%
b come i’ll
44%
B_come_i'll
26%
AttributeError
72. What will be printed when the following code is executed?
Anonymous Quiz
11%
B_be_i’ll
16%
b come i’ll
56%
B_come_i'll
17%
AttributeError
73. What will be printed when the following code is executed?
Anonymous Quiz
17%
TypeError
14%
36
22%
36.0
47%
576.0
WEAKLY PYTHON MILLIONAIRE DIGEST 3.10-9.10.2022
~ Topic #5 “Methods”
~ Average accuracy 50%
~ Average involvement 30 people (11%)
N.B.
🐍Pay attention to the way the split() method creates the list - the initial element type remains (e.g. (“1,2”.split(“,”) returns [“1”, “2”], not [1, 2])
🐍Note the logic of methods layering: some methods will return the AttributeError (e.g. “X y”.split().lower() will not work, as the lower() method is used with a string, and here split() has already created a list)
~ Topic #5 “Methods”
~ Average accuracy 50%
~ Average involvement 30 people (11%)
N.B.
🐍Pay attention to the way the split() method creates the list - the initial element type remains (e.g. (“1,2”.split(“,”) returns [“1”, “2”], not [1, 2])
🐍Note the logic of methods layering: some methods will return the AttributeError (e.g. “X y”.split().lower() will not work, as the lower() method is used with a string, and here split() has already created a list)