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