125. What will be printed when the following code is executed?
Anonymous Quiz
41%
['Apple', 'Banana', 'Orange']
20%
[['Apple'], ['Banana']]
15%
['Apple', 'Banana']
24%
[['Apple'], ['Banana'], ['Orange']]
126. What will be the first line of the output?
Anonymous Quiz
21%
['in SPB'] is colored Red
36%
“in SPB is colored Green”
36%
“in SPB is colored Red”
8%
“1992 is colored Green”
127. What will be printed when the following code is executed?
Anonymous Quiz
44%
['b00k']
20%
['book']
20%
“War and Peace”
16%
“Anna Karenina”
128. What will be the last row of the output?
Anonymous Quiz
15%
error
27%
1 [Anna Karenina] [rus]
35%
2 [1984] [not_rus]
23%
0 [War and Peace] [rus]
WEAKLY PYTHON MILLIONAIRE DIGEST 28.11-04.12.2022
~ Topic #13 “Scraping: Collecting links from the website”
~ Average accuracy 35%
~ Average involvement 10 people (4%)
N.B.
🐍Method .contents returns the contents of the tag in a list format (e.g [‘something’])
🐍The .contents method cannot be used together with .find_all method - this way you are treating a list of elements like a single element. Use .find instead
🐍The .get() method is used to retrieve information from the given server using a given url. It is also used to get information about a certain class (e.g. if we have tag = <p class=“a”> Hello <\p>, then tag.get(“class”) gives [‘a’])
~ Topic #13 “Scraping: Collecting links from the website”
~ Average accuracy 35%
~ Average involvement 10 people (4%)
N.B.
🐍Method .contents returns the contents of the tag in a list format (e.g [‘something’])
🐍The .contents method cannot be used together with .find_all method - this way you are treating a list of elements like a single element. Use .find instead
🐍The .get() method is used to retrieve information from the given server using a given url. It is also used to get information about a certain class (e.g. if we have tag = <p class=“a”> Hello <\p>, then tag.get(“class”) gives [‘a’])
129. What will be printed when the following code is executed?
Anonymous Quiz
38%
['movement', 'mortgage', 'moreover', 'momentum', 'monetary', 'mobility']
16%
['movem', 'mortg', 'inter', 'moreo', 'infor', 'momen', 'memor', 'monet', 'mobil']
36%
['movemen', 'mortgag', 'moreove', 'momentu', 'monetar', 'mobilit']
11%
['movemen', 'mortgag', 'moreove', 'momentu', 'memoria', 'monetar', 'mobilit']
130. What will be printed when the following code is executed?
Anonymous Quiz
12%
[]
15%
['ny,', 'ny,', 'ey,', 'oe,', 'ls,', 'go,', 'ny,', 'ny,', 'ey,']
46%
['Eeny', 'meeny', 'miney', 'toe', 'squeals', 'go', 'Eeny', 'meeny', 'miney']
27%
['Eeny,', 'meeny,', 'miney,', 'toe,', 'squeals,', 'go,', 'Eeny,', 'meeny,', 'miney,']
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.']