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.8
b = -8
c = -2.3
d = 9
e = False
ExpressionYour Answer
1. c > a False
2. int(c - -0.7) -1
3. -c - c 4.6
4. (d / 8 != c) == False False
5. int(c) -2
6. round(-(a + -0.6 - c), 2) -0.9
7. (e or True != e) and True True
8. (int(b / -8)) + d 10
9. b / 1 -8.0
10. not not e False
Check Answers