Question: PARTICIPATION ACTIVITY 8 . 6 . 2 : List slicing. Assume that the following code has been evaluated: nums = [ 1 , 1 ,

PARTICIPATION ACTIVITY
8.6.2: List slicing.
Assume that the following code has been evaluated:
nums =[1,1,2,3,5,8,13]
1)
What is the result of nums[1:5]?
Check
Show answer
Incorrect
The result list contains four elements, starting at position 1.[?,?....]
2)
What is the result of nums[5:10]?
Check
Show answer
3)
What is the result of nums[3:-1]?
Check
Show answer

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!