Advance Functions In Python #01
Advance Functions in Python
Lists & Tuples
lists and Tuples are collection data types, that allow you to store multiple items in a single variable.
you can have data of different types in lists and tuples.
Ex: xlist = ["apple", "banana", "berry", 45, 56.2, True]
xtuple = ("apple", "banana", "berry", 45, 56.2, True)
NOTE: In list, we use [ ] brackets and in Tuples, we use ( ) brackets.
Note: Lists are Mutable which means we can change the values as we want
In Tuples we can't Modify values as we want after programming.
So We Defined tuples as Immutable.
Comments
Post a Comment