So I am creating a program that has different possible string outputs. For example, the outputs could either be "a", "b", or "c". However I want to be able to use these outputs as an object. I already have objects initialized as a b and c. For example:
class Letter:
pass
a = Letter()
b = Letter()
c = Letter()
output = random.choice(["a", "b", "c"])
#for example it would output "a"
#then I would "call" (lack of a better term) the a object to do something with it
#basically the output decides which object I would use
a.color = "green"