Report any problems to
# Assume the following assignments have been made in Python
a = [0.1,2.1,-2.2,-2.1]
b = 'hyp'
c = -0.9
d = False
e = {-6:7,-1:5,5:-1,-4:-8}
| Expression | Your Answer | |
|---|---|---|
1. int(c)
| 0
| |
2. str(d != d)
| 'False'
| |
3. not (not -8 not in e)
| True
| |
4. ((b.split('h')[0:1:1]) * abs(9))
| ['', '', '', '', '', '', '', '', '']
| |
5. str(d)
| 'False'
| |
6. b[0:1].replace('h', 'D')
| 'D'
| |
7. (str(0.1 not in a))[2:4:6]
| 'l'
| |
8. c + -9
| -9.9
| |
9. -4 not in e != False
| False
| |
10. str(d)
| 'False'
|