Posts by George Bueno • 23 points
2 posts
-
2
votes1
answer79
viewsQ: How do I access the name of a class instance to use later?
I have a question how to use the "NAME" of a class instance. If I declare it directly: Sala_10 = Sala("Sala_10") works well. I can use the Sala_10.método(), but I would like to create (instantiate)…
pythonasked George Bueno 23 -
0
votes1
answer31
viewsQ: How to create a class instantiation using variables from a function return in Python 3?
Hello, I wish I could instantiate the class Sala below using as arguments the return of the function choose_sala(): The ideal would be to call the class initialization when the function returns…
pythonasked George Bueno 23