class User:
num_of_user = 0
def __init__(self,name):
self.name = name
User.num_of_user += 1
user_1 = User('A')
user_2 = User('B')
....
class Value(User):
def __init__(self,name,value):
User.__init__(self, name)
self.value = value
# --> user_1.value = read a new manual input
# --> user_2.value = read a new manual input
....
I am not familiar with how to present instances/attributes correctly in Class.
How to write above comment in a For loop?