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 = list(range(5))
b = -1.1
c = 5
d = {8:-0.8,9:b}
e = False
ExpressionYour Answer
1. len(d) 2
2. b - 1.3 > c False
3. c / c 1.0
4. str(c).split() ['5']
5. (str(e).strip()).strip('l') 'False'
6. str((-1.1 not in list(d.values()))) 'False'
7. c / c == c False
8. c % abs(-7) 5
9. (int(b) * -1) % abs(10) 1
10. str(e) 'False'
Check Answers