Instructions
- 1. Your final score will reflect your grasp of the concepts—approach each question with precision.
- 2. Thoroughly review each solution before proceeding to ensure full understanding.
- 3. Final results will be available after submission to provide insights into areas for further improvement.
- 4. Maintain academic integrity—plagiarism undermines learning and professional growth.
- 5. Once submitted, responses are final, so ensure you’re confident in your answers.
- 6. These challenges are designed to test practical knowledge; apply your skills as you would in real-world scenarios.
All Problems
Question
Action
What does list1.append(5) do?
What will list1.insert(1, 'a') do?
What does the list.remove(x) method do?
What will list.pop() return?
Which method returns the number of occurrences of an element?
What does list.sort(reverse=True) do?
What is the result of [1, 2, 3].index(2)?
What will list.extend([4, 5]) do for list = [1, 2, 3]?
Which method returns a reversed iterator of a list?
How do you clear all elements from a list?