Question 1
Which list is created by the following statement? list(range(8))
[0, 1, 2, 3, 4, 5, 6, 7, 8]
❌[1, 2, 3, 4, 5, 6, 7, 8]
❌[1, 2, 3, 4, 5, 6, 7]
❌[0, 1, 2, 3, 4, 5, 6, 7]
✅Question 2
Which list is created by the following statement? list(range(-3, 3, 3))
[-3, 0]
✅[-3, 0, 3]
❌[3, 0, -3]
❌[0, 3]
❌
< Previous unit | Next unit > |
Course Overview