Python Millionare
1.02K subscribers
477 photos
1 link
Small tasks, four answers
Download Telegram
62. What will be printed when the following code is executed?
Anonymous Quiz
57%
[1,8, 23, 3.14]
11%
error
10%
[1, 8, 'r', 'y', 23, 3.14, '^, %']
21%
[1,8, ("y"), 23, 3.14]
63. What will be printed when the following code is executed?
Anonymous Quiz
47%
3 4
20%
NameError
20%
3 4 5
14%
TypeError
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
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