- How do you make multiple lists in Python?
- How to create multiple list in C#?
- How to create multiple lists using for loop in Java?
How do you make multiple lists in Python?
You can simply use a for loop to create n lists. The variable a_i changes as i increments, so it becomes a_1, a_2, a_3 ... and so on.
How to create multiple list in C#?
To have a list with multiple data types you could use a Tuple which can take up to 8 items. Save this answer. Show activity on this post. Then, make a list of those: var myList = new List<MyInfo>() .
How to create multiple lists using for loop in Java?
Map<String, List<Item>> map = new HashMap<String, List<Item>>() map. put("d1", new ArrayList<Item>()); ... To then access the list corresponding to "d1" , for example you can just use map. get("d1") .