Professional Documents
Culture Documents
Test-1 - Python and Stat - Jupyter Notebook
Test-1 - Python and Stat - Jupyter Notebook
Find the number of unique numbers in your phone number and store it in one list
Create the dictionary and get the values and keys in thar dictionary
Explain the list and tuple with one basic program. Explain the difference between them.
In [ ]: my_list=[10,15,20,'a','b','c']
my tuple=(1,2,3,'a','b','c')
In [ ]: 1-Lists are mutable, meaning you can modify their elements (e.g., add, remove, or change values).
1-Tuples are immutable, so their elements cannot be modified after creation.
2-Lists use square brackets [],
2-tuples use parentheses ().
3-Lists can change in size (add or remove elements).