'how do I track changes in file using python

suppose the below text is present in the file

1.a=2
2.b=3
3.print(a+b)

if i change the value of b to 5, how to print that in this line this field is changed in python



Solution 1:[1]

I think you could use gif for version control of your source code and some library like GitPython to be able to interact from python.

Sources

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

Source: Stack Overflow

Solution Source
Solution 1 difegam3