How to request a variable value from a module in python
I know this question may be very stupid and may be in the course of python but you could tell me if you can request a specific variable belonging to a module, if so Let me explain, I want to transform this code (https://code.sololearn.com/cQA1ezE9CvGT/?ref=app) into a modular (https://code.sololearn.com/c9paVJ0x7oe1/?ref=app) code to make it more comfortable for me but I'm not very good at making modules and I keep learning In the code I'm doing I want to get the variable entrenamiento module model, but I don't know how Upgrade Hi I've managed to do it correctly I just need to solve the last part of the code where I need the variable "historial" to do the plt.plot(historial.history["loss"]) but "historial" belongs to "entrenamiento()" how do I use that variable?