I have three lists in python. Let’s say :
list_a
list_b
list_c
Now I am calling a method which also return a list and save into the above lists.
For example:
list_a = get_value(1)
list_b = get_value(2)
list_c = get_value(3)
I think the way I choose to call a same methods with different parameters are not a good option. Would it be possible for us to call these methods within one line?
I am beginner in Python, but what about the tuple option?
A list of lists?
or with your three lists:
taking into account, that
get_valuecannot be modified and returns just the single list.Another possibility would be a dictionary.