116. What will be printed when the following code is executed?
Anonymous Quiz
34%
{'what', 'decide', 'have', 'All'}
41%
{'is', 'to', 'we'}
16%
{'do', 'the', 'that', 'given', 'us'}
9%
{'with', 'time', 'is', 'to'}
117. What will be printed when the following code is executed?
Anonymous Quiz
19%
10
38%
11
21%
12
22%
error
118. What will be printed when the following code is executed?
Anonymous Quiz
23%
10
50%
11
20%
12
7%
error
119. What will be printed when the following code is executed?
Anonymous Quiz
10%
3307.5
42%
3307.549
40%
ValueError
8%
3307.55
120. What will be printed when the following code is executed?
Anonymous Quiz
17%
3307.5
67%
3307.549
15%
ValueError
0%
3307.55
121. What will be the last row of the table when the following code is executed?
Anonymous Quiz
9%
0 1254 Dentist USA 44
27%
1 1435 Actor Canada 27
30%
1 Actor Canada 27
34%
0 Dentist USA 44
WEAKLY PYTHON MILLIONAIRE DIGEST 21.11-27.11.2022
~ Topic #12 βText files and tablesβ
~ Average accuracy 33%
~ Average involvement 12 people (4%)
N.B.
πMind the file access modes while working with the files: βwβ - write only (open the file for writing, not reading), βw+β - write and read (open the file for BOTH writing and reading), βrβ - read only (open file for reading, not writing), βr+β - read and write (open the file for BOTH reading and writing), βaβ - append only (open file for writing (appending) only), βa+β - append and read (open the file for BOTH reading and writing(appending))
πreadlines() function reads all the lines and returns each of them as a string element in a list
~ Topic #12 βText files and tablesβ
~ Average accuracy 33%
~ Average involvement 12 people (4%)
N.B.
πMind the file access modes while working with the files: βwβ - write only (open the file for writing, not reading), βw+β - write and read (open the file for BOTH writing and reading), βrβ - read only (open file for reading, not writing), βr+β - read and write (open the file for BOTH reading and writing), βaβ - append only (open file for writing (appending) only), βa+β - append and read (open the file for BOTH reading and writing(appending))
πreadlines() function reads all the lines and returns each of them as a string element in a list
122. What will be printed when the following code is executed?
Anonymous Quiz
16%
"55"
47%
11
24%
"56"
13%
10
123. What will be printed when the following code is executed?
Anonymous Quiz
13%
['Part 1', 'Part 2']
22%
AttributeError
47%
'Part 1'
18%
['Part 1']
124. What will be printed when the following code is executed?
Anonymous Quiz
8%
['Part 1', 'Part 2']
23%
AttributeError
42%
'Part 1'
28%
['Part 1']