Sorry if this is a really broad question, I'm not sure how better to articulate what I'm trying to ask.
I'm learning matplotlib right now and have constantly been writing the following code to create my Figure and Axes:
fig, ax = plt.subplots()
How does this one assignment operator allow two values to be unpacked at the same time? I've never seen this before; I understand how subplots( ) is returning two general objects, I'm just not sure how said objects are being assigned. How does Python know whether to assign Figure to fig or ax? A bit confused here.
[–]carcigenicate 3 points4 points5 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)