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
140. What will be printed when the following code is executed?
Anonymous Quiz
44%
TrueTrueTrueTrueTrue
14%
0
25%
5
18%
error
141. What will be printed when the following code is executed?
Anonymous Quiz
11%
error
21%
''
24%
'Sing with me, '
44%
'and sing it for the tear. '
142. What will be printed when the following code is executed?
Anonymous Quiz
18%
['Monica ', ', ', 'Rachel ']
44%
Monica,,,Rachel
26%
Monica , Rachel
12%
Monica,,Rachel
WEAKLY PYTHON MILLIONAIRE DIGEST 12.12-18.12.2022
~ Topic #15 “Topics Recap”
~ Average accuracy 32%
~ Average involvement 24 people (9%)
N.B.
🐍 The sum() method adds all values in each column and returns the sum for each column. Keep in mind that str values will also be added, meaning concatenation (e.g. sum of a column containing names will be a string containing all the names)
🐍By multiplying a boolean value by number we receive a number (1 or 0)
🐍 Splitting the string by spaces, all the elements from the string will get into the list, including punctuation marks - they will be treated as equivalent signs (e.g. “one , three”.split() gives you [“one”, “,”, “three”] - a list that actually contains three elements, even though there were only two words in a sentence)
~ Topic #15 “Topics Recap”
~ Average accuracy 32%
~ Average involvement 24 people (9%)
N.B.
🐍 The sum() method adds all values in each column and returns the sum for each column. Keep in mind that str values will also be added, meaning concatenation (e.g. sum of a column containing names will be a string containing all the names)
🐍By multiplying a boolean value by number we receive a number (1 or 0)
🐍 Splitting the string by spaces, all the elements from the string will get into the list, including punctuation marks - they will be treated as equivalent signs (e.g. “one , three”.split() gives you [“one”, “,”, “three”] - a list that actually contains three elements, even though there were only two words in a sentence)
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]