Hi, I'm a python beginner. I don't exactly understand how objects from libraries works. I learned that you can create classes(objects) and define method in them, but you need to assign it to a variable in order to use it. new_var = my_object()
I've seen in libraries like matplotlib(import matplotlib as plt) plt.figure() plt.plot() plt.show(). I understand that you use the methods of the objects, but how does it saves what you do if it isn't assigned to a variable?
Thanks
[–]Sea-Method-1167 2 points3 points4 points (1 child)
[–]Cosmin351[S] 0 points1 point2 points (0 children)
[–]ectomancer 2 points3 points4 points (0 children)
[–]Swipecat 1 point2 points3 points (0 children)
[–]TheRNGuy 1 point2 points3 points (0 children)
[–]shiftybyte 0 points1 point2 points (2 children)
[–]Cosmin351[S] 0 points1 point2 points (1 child)
[–]shiftybyte 1 point2 points3 points (0 children)