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 = 'MARC'
c = True
d = -0.9
e = [list(range(9,10))]
ExpressionYour Answer
1. str((d + 1.6 <= d)) 'False'
2. (b.find('M') == 0.2) == c False
3. round((b.split('A').count('M')) / a, 3) -0.111
4. (int(d) ** 2) % (1+1) 0
5. d >= 1.8 False
6. not c False
7. str(c).split() ['True']
8. str(c and c) 'True'
9. str(c) 'True'
10. d == 0.9 False
Check Answers