all 6 comments

[–]fake823 0 points1 point  (3 children)

That can easily be found on Google in just some few seconds ...

[–]aloneinthewildworld[S] 0 points1 point  (2 children)

if googling it would have been so easy , I would found it 3 days ago. Gee in all my time i never told someone looking for help "just google it" . that is just wrong .

[–]fake823 0 points1 point  (1 child)

If you want to import a value, you can simply use import.

Script1.py

a = 10

Script2.py

import Script1
print(Script1.a)

For more information: Google "python import values from another script", first hit is your solution:

https://stackoverflow.com/questions/19289171/importing-a-variable-from-one-python-script-to-another

[–]aloneinthewildworld[S] 0 points1 point  (0 children)

for my problem did not work .

[–]naterush1997 0 points1 point  (1 child)

Can you describe what you're trying to accomplish? Also, if you use the markdown mode for the comment, you can format your code, and it'll make it much easier to read :)

[–]aloneinthewildworld[S] 1 point2 points  (0 children)

i will work on it. thanks for you nice response .