Report any problems to
# Assume the following assignments have been made in Python
a = True
b = 0.7
c = {5:b,-1:b}
d = [-0.7]
e = 'CLTP Dira tips'
| Expression | Your Answer | |
|---|---|---|
1. e.strip('p')
| 'CLTP Dira tips'
| |
2. not ('c' in e == False)
| True
| |
3. e.split()
| ['CLTP', 'Dira', 'tips']
| |
4. round(len(e) / -9, 0)
| -2.0
| |
5. int(b) - 5
| -5
| |
6. e.lower()
| 'cltp dira tips'
| |
7. e.lower()
| 'cltp dira tips'
| |
8. str(not a)
| 'False'
| |
9. len((e[3:6:16].replace('P', 'k')))
| 1
| |
10. d + list(range(3,4))
| [-0.7, 3]
|