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 = True
b = a and False
c = 4
d = c * -1
e = -2.2
ExpressionYour Answer
1. a and b False
2. c / d -1.0
3. a or True or False True
4. not not b False
5. d ** 0 * 2 2
6. int((-e - d)) 6
7. b == b True
8. a or a True
9. b or b == True False
10. (b or b != b) or False False
Check Answers