Day 3: Python Learnings – Lists, Tuples & Dictionaries (with Examples)
1. Lists in Python
A List is a collection that is ordered, mutable (can be changed), and allows duplicate items.
Creating a List & Accessing Items
fruits = ["apple", "banana", "cherry"]
print(fruits[1])
Output:-
banana
Slicing a List
print(fruits[0...
basicpython.hashnode.dev2 min read