🚀 Understanding the Difference Between List, Tuple, Set, and Dictionary in Python If you are starting your Python journey, one common confusion is understanding the difference between List, Tuple, ...
Lists are mutable. Tuples are immutable. sets are mutable but do not allow modifying existing elements (only addition or removal). dictionaries are mutable; keys are immutable, but values can change.
Q2. Write a program to find the sum and average of all numbers in a list. pythonnumbers = [10, 20, 30, 40, 50] Q3. Create a list of numbers and sort it in descending order without using sort() method.
Some results have been hidden because they may be inaccessible to you
Show inaccessible results