Python Millionare
1.02K subscribers
477 photos
1 link
Small tasks, four answers
Download Telegram
143. What will be printed when the following code is executed?
Anonymous Quiz
6%
error
29%
[1, 5, 7]
54%
[1, 7]
11%
[1, 2, 4, 6, 7, 8]
144. What will be printed when the following code is executed?
Anonymous Quiz
12%
error
40%
[1, 5, 7]
36%
[1, 7]
12%
[1, 2, 4, 6, 7, 8]
145. What will be printed when the following code is executed?
Anonymous Quiz
35%
error
34%
[1, 5, 7]
26%
[1, 7]
5%
[1, 2, 4, 6, 7, 8]
146. What will be printed when the following code is executed?
Anonymous Quiz
13%
['Twelve:', 'Eighty nine:']
49%
['12', '89']
36%
['Twelve:', ' Eighty nine:', '.']
2%
['Twelve', 'Eighty nine']
WEAKLY PYTHON MILLIONAIRE DIGEST 19.12-25.12.2022

~ Topic #16 “Topics Recap”
~ Average accuracy 28%
~ Average involvement 40 people (15%)

N.B.

🐍 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 re.split() method splits the string by the occurrences of the regex pattern and returns a list of the resulting substrings, similarly to the built-in split() function
🐍By multiplying a boolean value by number we receive a number - 1 or 0

Many thanks to everyone for the active participation in solving problems!
🎄We wish you all happy holidays!
149. What will be printed when the following code is executed?
Anonymous Quiz
21%
true
21%
false
44%
error
15%
unsubscribe
151. What will be printed when the following code is executed?
Anonymous Quiz
5%
43
14%
TypeError
15%
2023
66%
20!23