Report any problems to
# Assume the following assignments have been made in Python
a = 'Laos neo- SLAN'
b = False
c = [0.6,1.7,1.8]
d = -9
e = 2.1
| Expression | Your Answer | |
|---|---|---|
1. (d + -4 // d) % (2+1)
| 0
| |
2. str(1.7 in c)
| 'True'
| |
3. d <= 1.5
| True
| |
4. (c * abs(d))[7:10]
| [1.7, 1.8, 0.6]
| |
5. c[0:2:1]
| [0.6, 1.7]
| |
6. c[1:2]
| [1.7]
| |
7. round(len(a) / d, 3)
| -1.556
| |
8. (b or b == b) or False
| True
| |
9. (len(a.strip('-'))) // d
| -2
| |
10. (((str(b) * 3)) * 3)
| 'FalseFalseFalseFalseFalseFalseFalseFalseFalse'
|