Messages
Topics
Lists
Groups
Marketplace
Jobs
Isadore Hermiston
3 years ago
Use [None] * 10 if want to create a list size of 10. Where each position is initialized to None. After that, you can add elements to it.
The post Python create empty list of size | Example code appeared first on Tutorial.
#python
Mastering the Python create empty list of size and Example code. Use [None] * 10 if want to create a list size of 10. Where each position is initialized to None