May-15-2018, 03:05 AM
Hi,
I have two python scripts and I want to call 1st python script and use the output of this script in another python script.
For example:
I have two python scripts t1.py and t2.py
t1.py
9
Traceback (most recent call last):
File "t2.py", line 2, in <module>
b = str(a)
NameError: name 'a' is not defined
Please help
I have two python scripts and I want to call 1st python script and use the output of this script in another python script.
For example:
I have two python scripts t1.py and t2.py
t1.py
a = 9 print at2.py
import t1 b = str(a) print bWhen I ran python t2.py, it is resulting in the output of t1.py and getting the below error:
9
Traceback (most recent call last):
File "t2.py", line 2, in <module>
b = str(a)
NameError: name 'a' is not defined
Please help