PYTHON CIRCLE
Practice
Python Books
Archive
Subscribe
Login
Menu
Login
Practice
Python Books
Archive
Subscribe
Blog available for sell
This blog is available for sale. Please 'contact us' if interested.
Advertise with us
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 ?
A. print(list1[0])
B. print(list1[:2])
C. print(list1[:-2])
D. all of the mentioned
Show Answer
Next Question
Correct Answer:
D
Explanation: Slicing is allowed in lists just as in the case of strings.
© 2024-2025 Python Circle
Contact
Sponsor
Archive
Sitemap