COSC 101 expression practice (beta!)

Report any problems to jsommers@colgate.edu

Generate expressions using these types:






# Assume the following assignments have been made in Python
a = ['Edra','Mina dalt','CSR']
b = -5
c = 1.8
d = {9:-2}
e = True
ExpressionYour Answer
1. str(e) 'True'
2. 'Mina dalt' not in a != e False
3. len(d) + b -4
4. (-c - b) + 1.9 5.1
5. (str(e).split()) + list(range(5)) ['True', 0, 1, 2, 3, 4]
6. 'CSR' not in a == e False
7. str((9 not in d and False)) 'False'
8. str('CSR' not in a) 'False'
9. ('Edra' not in a[2:3:3]) and e False
10. -2 not in d True
Check Answers