For Techs.... Techniques.... Technologies....


How to import variable from another file in Python

Python have a simple way to load variables from another file.

First of all put the variables to a file. For eg:

Then import this file in the program where we need to load the variables.

from import * 

This will import all objects and methods in the file to the program.

That's all…

Leave a Reply