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 = list(range(10))
b = -2.0
c = 8
d = 'beld hut raid'
e = False
ExpressionYour Answer
1. str(e).find('e') 4
2. str(e).isdigit() False
3. ((a * abs(-3))[7:18:22])[0:1:2] [7]
4. round(b - -2.1, 3) 0.1
5. str(e) 'False'
6. int(-b) 2
7. b > b False
8. len(str(e)) 5
9. str(e) 'False'
10. str((not 'v' not in d)) 'False'
Check Answers