How many elements does the my_list list contain?
my_list = [i for i in range(-1, 2)]
- three
- one
- two
- four
Explanation: A list named my_list is created with a range of elements from -1 to an element before 2, that is: -1,0,1. Three elements
More Questions: Python Essentials 1 – Module 3 Test
Please login or Register to submit your answer