Computer Science
Given a list L= [10, 20, 30, 40, 50, 60, 70], what would L[-4 : -1] return?
- [20, 30, 40]
- [30, 40, 50]
- [40, 50, 60]
- [50, 60, 70]
Related Questions
Given a list L= [10, 20, 30, 40, 50, 60, 70], what would L[1 : 4] return?
Given a list L= [10, 20, 30, 40, 50, 60, 70], what would L[2 : -2] return?
Given a list L= [10, 20, 30, 40, 50, 60, 70], what would L[-3 : 99] return?
To find the last element of list namely 'smiles' in Python, .......... will be used.