Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
how to import a variable from another python file
biggvsdiccvs
Programming language:
Python
2021-07-30 02:25:37
0
Q:
how to import a variable from another python file
user68076
Code:
Python
2021-02-04 00:25:23
from file1 import x1 print(x1)
1
Joe
Code:
Python
2021-06-21 00:07:39
from file1 import * #now use x1, x2..
0
Tags
python
file
variable
how
port
var
python file
another
Related
how to import your own function python
import class from another file python
python load a txt file and assign a variable
how to use function of python file in another python file
how to import functions from another python file
how to write a python variable to a file
windows how to store filepath as variabley python
import python file from another directory
python use functions from another file
python use variable in another file
how to use variable from another function in python
how to import all functions from another python file
import file from another directory python
how to reference variable in another file python
how to save python variables locally
how to request a variable from imported file python
python global variable across files
how to use functions from another file in python
New to Communities?
Join the community