Report any problems to
# Assume the following assignments have been made in Python
a = [[2.1,-0.8,1.3]]
b = {10:{-10:-2.4,6:-1.5,-5:2.5,-4:-0.6},8:{-5:-1}}
c = -10
d = True
e = 1.6
| Expression | Your Answer | |
|---|---|---|
1. [2.1, -0.8, 1.3] in a
| True
| |
2. str(c).strip()
| '-10'
| |
3. str(d)
| 'True'
| |
4. len(b) % abs(c)
| 2
| |
5. (a * abs(c))[5:6]
| [[2.1, -0.8, 1.3]]
| |
6. c / c
| 1.0
| |
7. -a.index([2.1, -0.8, 1.3])
| 0
| |
8. str(d != d)
| 'False'
| |
9. --e
| 1.6
| |
10. not (not 10 not in b)
| False
|