Q21. What makes a tuple different from a list in Python?
Learn Mode
Practice & Learn
View correct answers for each question to enhance your understanding.
Q22. Which list method can combine two lists together?
Q23. What is the output of numbers = [1,2,3,4,5]; print(numbers[1:4])?
Q24. Which method is used to remove the first matching item from a list?
Q25. What will be the output? fruits=['Mango', 'Apple', 'Banana']; fruits[0]='Orange'; print(fruits)
Q26. What does the append method do in a list?
Q27. How do you access the second item in a list called fruits?
Q28. Which of the following is NOT a built-in data structure in Python?
Q29. Which of the following is a built-in Python library used to generate random numbers?
Q30. What is the purpose of a default parameter in a function?