data is changed?
                  
                  
                  how to tell the program if the data is changed do somethhing?
                  
                  
                
Use the Observer pattern https://refactoring.guru/design-patterns/observer/python/example
Обсуждают сегодня