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 = {6:'sips CPSU unl'}
b = True
c = -2.0
d = 4
e = 'RSS bens'
ExpressionYour Answer
1. d == c False
2. (len(str(d))) / 8 0.125
3. -len(a) -1
4. c + d 2.0
5. e + 'XUI' 'RSS bensXUI'
6. -d -4
7. list(a.keys()) [6]
8. e.isdigit() False
9. d ** 2 16
10. list(a.values()) ['sips CPSU unl']
Check Answers