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

preview_player
Показать описание

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.

Рекомендации по теме
Комментарии
Автор

hey dude, you did not show any example using an empty list, I was looking for it yet you just show me normal lists. I was looking for how to add "[] " between numbers inputted by the user (not only at the end, which was already there by default

SeteQuartos
visit shbcf.ru