I want to import a python script in to another script.
$ cat py1.py
test=("hi", "hello")
print test[0]
$ cat py2.py
from py1 import test
print test
If I execute py2.py
:
$ python py2.py
hi
('hi', 'hello')
Can I anyway mute the first print
which is coming from the from py1 import test
?
I can't comment the print
in py1
, since it is being used somewhere else.