Report any problems to
# Assume the following assignments have been made in Python
a = {1:1.2,-7:-2.3,1:0.3,7:-1.0}
b = -1.6
c = 'dell LCDR'
d = -9
e = [False,True,False,False]
| Expression | Your Answer | |
|---|---|---|
1. True in e
| True
| |
2. (str(d ** 3)).find('-')
| 0
| |
3. -b + d
| -7.4
| |
4. str(d)
| '-9'
| |
5. (str(d).split('9'))[0:1]
| ['-']
| |
6. a.get(7,1)
| -1.0
| |
7. d / d
| 1.0
| |
8. round((int(b) % abs(d)) / -6, 1)
| -1.3
| |
9. str(len(a))
| '3'
| |
10. d < b
| True
|