Python Forum

Full Version: How to put the items of one list in new generated lists
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello.

I would like to know if it is possible to create for example 100 lists automatically,
so that I can use list1, list2, list3, ... list100

Thank you for your help.
it's possible but you should not create variable names dynamically. Use proper data structure like list or dict.
What would be the content of these lists?