Is it possible to do something like this?
class child:
def __init__(self):
self.figure = "Square"
self.color = "Green"
bot = child()
bot_parameters = ['color', 'figure']
[print(bot.i) for i in bot_parameters] #Attribute Error from the print function.
I know I can access the parameter values with __dict__
but I wanted to know if it is possible to concatenate the parameters to programmatically/dynamically get the values.