Choose your answer
Anonymous Quiz
17%
[1, 2, 3, 4]
1%
(1, 2, 3, 4)
69%
'1,2,3,4'
13%
'1234'
0%
See solution
Choose your answer
Anonymous Quiz
25%
<class 'bool'>
3%
<class 'int'>
59%
<class 'type'>
10%
TypeError
3%
See solution
What will this code do?
import numpy as np
import pandas as pd
a = pd.np.array([1, 2, 3])
b = np.array([-3, 2, 1])
print(a @ b)
Choose your answer
Anonymous Quiz
2%
-2
9%
0
17%
4
29%
TypeError
3%
ValueError
22%
AttributeError
17%
See solution
What will this code do?
print(list(map(lambda f: f(2), [lambda x: x**i for i in range(3)])))
Choose your answer
Anonymous Quiz
26%
[1, 2, 4]
3%
[1, 1, 1]
8%
[2, 2, 2]
18%
[4, 4, 4]
5%
TypeError
10%
ValueError
10%
AttributeError
21%
See solution
What will this code do?
print(list(map(lambda f: f(2), (lambda x: x**i for i in range(3)))))
Choose your answer
Anonymous Quiz
26%
[1, 2, 4]
5%
[1, 1, 1]
2%
[2, 2, 2]
33%
[4, 4, 4]
17%
AttributeError
0%
TypeError
0%
ValueError
17%
See solution
👍1
Choose your answer
Anonymous Quiz
22%
True
50%
False
5%
AttributeError
3%
ValueError
17%
TypeError
3%
See solution
What will this code do?
1 > 1 or {} or 'hello' or type('hello') is str and FalseChoose your answer
Anonymous Quiz
27%
True
42%
False
10%
'hello'
0%
str
2%
{}
8%
TypeError
2%
ValueError
8%
See solution
😱4
Choose your answer
Anonymous Quiz
22%
True
8%
False
2%
nan
0%
None
56%
TypeError
5%
ValueError
3%
AttributeError
2%
SyntaxError
2%
See solution
What will this code do?
(lambda x: x**2 if '' or None or 1 and [False] else lambda x: x*2)(3)