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?
list_a = get_value(1)does not "save the return value into the above list". You would need to uselist_a[:] = get_value(1)instead.