Python Millionare
1.02K subscribers
477 photos
1 link
Small tasks, four answers
Download Telegram
78. What will be printed when the following code is executed?
Anonymous Quiz
35%
['coding', 'is', 'so', 'fun']
20%
False
37%
True
7%
error
79. What will be printed when the following code is executed?
Anonymous Quiz
13%
['pears', 'apples']
18%
200
58%
300
11%
[200, 100]
WEAKLY PYTHON MILLIONAIRE DIGEST 10.10-16.10.2022

~ Topic #6 “Unordered data types”
~ Average accuracy 41%
~ Average involvement 45 people (16%)

N.B.

🐍 The set() function will return a set of elements in a random order without duplicates
🐍Pay attention to the type of the element that is required in the result (e.g. many people choose the correct result, but in numbers instead of strings)
🐍 If you change the list, the link to which is part of some dictionary, the dictionary itself will change (e.g. l = [1], dict = {a:l} or {a:[1]}, then we change l = [2], so now dict = {a:[2]})
83. What will be printed when the following code is executed?
Anonymous Quiz
4%
4
48%
ok
29%
error
20%
need another number
84. What will be printed when the following code is executed?
Anonymous Quiz
9%
V 0 3 VW 1 2 WV 2 1 W
77%
V 0 3 V 1 2 V 2 1 W
10%
error
5%
infinite loop