131. What will be printed when the following code is executed?
Anonymous Quiz
38%
['know', 'how', 'know', 'w']
23%
['ow', 'ow', 'ow', 'w']
25%
['Oh as long as I know', 'how', 'I know', 'I w']
15%
['know', 'how', 'know', 'will']
132. What will be printed when the following code is executed?
Anonymous Quiz
60%
['alice@box.com', 'bob@abc.com']
15%
'alice@box.com', 'bob@abc.com', 'blah@'
10%
'alice@box.com', 'bob@abc.com'
133. What will be printed when the following code is executed?
Anonymous Quiz
22%
thinkthinkthink
43%
TypeError
25%
1.2
10%
92.1
134. What will be printed when the following code is executed?
Anonymous Quiz
26%
['life', 'ver!', 'ever.']
22%
['life\n', 'ver!\n', 'ever…']
32%
['life\n', 'ever!\n', 'ever.']
20%
['life\n', 'ver!\n', 'ever.']
135. What will be printed when the following code is executed?
Anonymous Quiz
26%
['harder, ', 'better, ', 'faster, ']
32%
['der, ', 'ter, ', 'ter, ']
33%
['der', 'ter', 'ter', 'ger']
9%
['der,', 'ter,', 'ter,']
WEAKLY PYTHON MILLIONAIRE DIGEST 5.12-11.12.2022
~ Topic #14 “Additional chapters: re”
~ Average accuracy 29%
~ Average involvement 12 people (4%)
N.B.
🐍 re.findall() returns a list of all occurrences according to the given pattern
🐍 re.match() will search the pattern and return the first occurrence at the beginning of the string
🐍 re.search() will search the pattern and return the first occurrence as well, but, unlike re.match(), it will check all the lines of the input string()
🐍 Ordinary characters (letters (a, A), digits(9)) match themselves exactly. The meta-characters(^$*+?{}[]()\|) do not match themselves, because they have special meanings (e.g. + - match 1 or more occurrences, * - 0 or more occurrences, ? - 0 or 1 occupancies of the pattern)
~ Topic #14 “Additional chapters: re”
~ Average accuracy 29%
~ Average involvement 12 people (4%)
N.B.
🐍 re.findall() returns a list of all occurrences according to the given pattern
🐍 re.match() will search the pattern and return the first occurrence at the beginning of the string
🐍 re.search() will search the pattern and return the first occurrence as well, but, unlike re.match(), it will check all the lines of the input string()
🐍 Ordinary characters (letters (a, A), digits(9)) match themselves exactly. The meta-characters(^$*+?{}[]()\|) do not match themselves, because they have special meanings (e.g. + - match 1 or more occurrences, * - 0 or more occurrences, ? - 0 or 1 occupancies of the pattern)
136. What will be printed when the following code is executed?
Anonymous Quiz
32%
['Rid', 'dle', 'wha', 'wil', 'exa', 'hmm']
33%
['idd', 'wha', 'wil', 'exa', 'hmm']
21%
[]
14%
['exam ,.,.,.,. hmm?']
137. What will be the last row of the table after the program is executed?
Anonymous Quiz
47%
3 6 BobSallyScott 17020
22%
3 2.0 NaN 5673.333333
22%
3 6 NaN 17020
8%
3 6 BobSallyScott 5673.333333
138. What will be printed when the following code is executed?
Anonymous Quiz
41%
2529
36%
C2H5OH or 32=9
12%
54
10%
3
139. What will be printed when the following code is executed?
Anonymous Quiz
20%
error
51%
0,4
11%
4:0
18%
1,7