Python Create Empty List || Python Lists tutorial with sample codes #7

Опубликовано: 06 Декабрь 2024
на канале: Placement Raja
2,006
13

Python create empty list and Python list built in function are the topics that will be discussed in our Python Lists Tutorial. Visit http://placementraja.com for full code

What is a python list ?
Python list is a data structure which is a set of elements of different types. Python list can store any elements like Number, Float , String , Character , Tuple ,Dictionary and Even nested lists also in continuous fashion.

Python Create Empty List
Creating Empty list in python is so simple like cake walk.
a=[]
If you just assign square brackets just like i did above, empty list in python will be created and will be assigned to particular variable.

Python list built in function
In python, list() is the built in function through which list can be generated.
if you assign a=list() , empty list will be assigned to 'a' variable.

Follow us :   / placementraja  
Subscribe :    / @placementraja4232