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 = 2.3
b = False
c = 5
d = c * c
e = False
ExpressionYour Answer
1. (-c + c) / c 0.0
2. (not a == -9) and False False
3. -(c ** 3 * c) -625
4. round((int(a) / -4) + a, 1) 1.8
5. not e True
6. (c % (1+1) ** 1) % abs(-5) 1
7. e == True or b False
8. int(a) 2
9. (b or False != e) != False False
10. (d / -1 - -4) + 1.9 -19.1
Check Answers