Report any problems to
# Assume the following assignments have been made in Python
a = 2
b = False
c = 0.7
d = [-5,4]
e = {5:b}
| Expression | Your Answer | |
|---|---|---|
1. str(a).find('2')
| 0
| |
2. -c
| -0.7
| |
3. 5 not in e
| False
| |
4. list(e.keys())
| [5]
| |
5. str(a) + 'CTMS'
| '2CTMS'
| |
6. len((str(b).split()))
| 1
| |
7. (str(len(e))).split()
| ['1']
| |
8. a <= -3
| False
| |
9. len(e)
| 1
| |
10. b and True
| False
|