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.2
b = [-7,2,6]
c = 1
d = False
e = 'xis'
ExpressionYour Answer
1. -7 not in ((b * abs(-7))[0:1:11]) False
2. c % abs(c) 0
3. str(d) 'False'
4. c / -5 -0.2
5. d or d False
6. e.split('s') ['xi', '']
7. c == a or d False
8. str(e.find('x')) '0'
9. d == False True
10. str(c) '1'
Check Answers