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 = 0.3
b = {-6:-4}
c = list(range(3,6))
d = -9
e = True
ExpressionYour Answer
1. str(e) 'True'
2. round(a + -2.3 + 0, 1) -2.0
3. not d >= d False
4. c[2:3] [5]
5. len(b) 1
6. int((d + -8 / -2)) -5
7. int(a) 0
8. -a -0.3
9. str(4 in c) 'True'
10. round((len(b) / d) + -3, 2) -3.11
Check Answers