Importing variables from another file

Category > PYTHON || Published on : Monday, December 28, 2020 || Views: 489 || Importing variables from another file


Here Pawan Kumar will explain how to Importing variables from another file in Python

vari.py

title="Hello"

script.py

import vari
print(vari.title)