Report any problems to
# Assume the following assignments have been made in Python
a = 'call'
b = list(range(4))
c = 0.5
d = {-2:False,-2:True,3:False}
e = True
| Expression | Your Answer | |
|---|---|---|
1. -a.find('l')
| -2
| |
2. e and e
| True
| |
3. (str(e).upper()).strip('U')
| 'TRUE'
| |
4. c + -0.3
| 0.2
| |
5. str(e).split()
| ['True']
| |
6. list(d.values())
| [True, False]
| |
7. (len(a) / 2) >= c
| True
| |
8. int(c) <= 9
| True
| |
9. b[1]
| 1
| |
10. int(c)
| 0
|