InterviewSolution
Saved Bookmarks
| 1. |
Write the output of the given Python code.# !/user/bin/pythonlist1 = [‘physics’, ‘chemistry’, 1997,2000]; list2 = [1,2, 3,4,5, 6, 7];print “list2[1:5[ :”, list2[1:5] |
|
Answer» Answer: list2[1:5[: [2,3,4,5] |
|