I'm new to classes in python and am looking for someone to explain why I'm running into this issue.
I have this class:
class TrackingMeasure:
Touches = 'Possessions'
DefensiveImpact = 'Defense'
When I attempt to run this loop:
tracking_refs = ['Touches','DefensiveImpact']
for x in tracking_refs:
print(TrackingMeasure.x)
I get this error:
AttributeError: type object 'TrackingMeasure' has no attribute 'x'
I'm sure this will be very easy for someone to explain so any help would be greatly appreciated.