Referential transparency is a way of thinking about computer programs. It means that if you have a part of your program that looks like this:
x = 5 + 2
You can replace it with the number that it gives you - in this case, 7 - and nothing will change in the program. So, if the program worked one way before, it will keep working the same way after you make the change.