import python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

import python

Hi! I was wondering how import works exactly. I keep getting errors. (in Python 3)

2nd Nov 2019, 5:07 PM
Julia R
3 Answers
+ 2
import statement runs a Python file, any global variable that was declared in the file will be brought to the main program with a namespace of the file name.
2nd Nov 2019, 5:15 PM
Seb TheS
Seb TheS - avatar
+ 2
Can you delete the duplicates of this question, please?
2nd Nov 2019, 5:17 PM
Seb TheS
Seb TheS - avatar
0
Julia Reinhard Please delete duplicate questions.
2nd Nov 2019, 5:41 PM
A͢J
A͢J - avatar