hi guys.
can anyone tell me why this code doesn't work? It doesn't raise any error but neither does it provide the expected results.
my_list= ['a','b']
class my_class:
def __init__ (self):
self.name = ' my name is hi'
for a in my_list;
a = my_class()
a.name() gives and error.