Hello Sachin007,
I am Jaspreet Singh.
Environment variables in simple terms define where a certain category of programs will store files (temp and permanent) where it will install files (install directory) and other crucial details.
So when you install any programming language for example python it will create an environment variable which will tell py files where they can install and where they will load/store the files.