'I want to access a stored variable from one class from another class in python

I am simulating a person running with an enemy chasing the person. I am struggling in finding the code for the movement of the enemy.

class Person ():
    def __init__(self, limits, name)
        self.row = 0
        self.col = 0
    
    def run(self, limits):
        #movement code etc.

I want to be able to take the self.row coordinate from the Person, and be able to use that variable in class Enemy, to determine the movement of Enemy. Throughout the simulation I'll be changing the self.row and self.col of Person so I want the Enemy to be able to follow.

class Enemy ():
    def __init__(self, limits, name)
        self.row = 0
        self.col = 0

    def run(self, limits):
        if self.row > #the Person's self.row
            self.row -= 1

How can I use the variables from class Person and use them in class Enemy to determine the movement?

Edit: If I make an object under class Person, how do I access that object, specifically each self.row or self.col from class Enemy?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source