So I am currently writing a bot for discord, a texting app service with an api.
Fairly new to python so I'm just going to try and explain what I would like best.
I have a list of strings. I am trying to use a item from the list in a Class Object but am unsure how to convert the string to an object. like so.
list = ['!','display','display_name']
and I want to do this.
print(self.user.list[2])
how would I convert the list[2] to a object so that print statement can work?