Python Multiple Choice Questions
Suppose list1 is [4, 2, 2, 4, 5, 2, 1, 0], Which of the following is correct syntax for slicing operation ?
D. all of the mentioned
Explanation: Slicing is allowed in lists just as in the case of strings.
© 2022-2023 Python Circle