Python Programming - Answer Key
Unit 1 - SAQ 1:
Mutable sets can be changed after creation, while immutable sets (frozensets) cannot be changed.
Mutable sets are created using set(), while immutable ones use frozenset().
Unit 1 - SAQ 2:
Lists are mutable, whereas tuples are immutable. Lists use square brackets [], while tuples use
parentheses ().
Unit 1 - SAQ 3:
Type conversion is converting one data type to another. Example: int('5') converts string '5' to
integer 5.
Unit 1 - LAQ 1:
Python has several internal types such as int, float, complex, list, tuple, dict, set, and frozenset.
These types are used to store various kinds of data and structures.