Answer the question
In order to leave comments, you need to log in
How to import variables/functions correctly?
Hello everyone, I'm just learning python and ran into a problem with the logic of importing variables, functions, etc., I'll post a simple example that describes the issue
pesok.py
from autotesting.pesok import add
print(add)
pesok2.py
zxc = 1234567890
print(zxc)
add = 2
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question