list[:] output would be printing the
complete list minus first element
complete list
complete list minus last element
Share
list[:] output would be printing the
complete list minus first element
complete list
complete list minus last element
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Answer:
complete list
Explanation:
Blank List: [] List of numbers: [10, 20, 14] List Items Geeks Geeks ... and to print the whole List with the use of slicing operation, use [:].