It makes reasoning about programs easier. It also makes each
What is referential transparency in Python?
Referential transparency: Expressions can be replaced by its values. If we call a function with the same parameters, we know for sure the output will be the same (there is no state anywhere that would change it).
How is referential transparency related to functional side effects?
Another benefit of referential transparency is that it eliminates side-effects from your code. ... Referential transparency requires that functions be free of any code that can modify the program state outside of the function.