Report any problems to
# Assume the following assignments have been made in Python
a = {-1:[-3,'ates'],6:list(range(3))}
b = 'dabs Vict'
c = True
d = list(range(7))
e = -1
| Expression | Your Answer | |
|---|---|---|
1. e % (2+1)
| 2
| |
2. str(c or c)
| 'True'
| |
3. (b.islower() and True) and c
| False
| |
4. b.split('c')[0:1:1]
| ['dabs Vi']
| |
5. e / e + -2.0
| -1.0
| |
6. e < 6 != True
| True
| |
7. -1 in (list(a.keys())[0:1])
| True
| |
8. (len(str(c))) / -4
| -1.0
| |
9. b[3:6:7].isdigit()
| False
| |
10. list(a.values())
| [[-3, 'ates'], [0, 1, 2]]
|