I have the following class, where I want to use the method location_change within __init__for that class. Is there a way to do this? The example I use below is a simplification but what I need to do is use a class method to transform some constructor data. Can this be done in python?
class dummy:
def __init__(self):
self.location = 'USA'
print(self.location)
location_change()
print(self.location)
def location_change():
self.location = 'UK'
first_dummy = dummy()