I want to import variables from another program using the from import function. Sample Code:
script1:
c=1
print('hello')
script2:
from script1 import c
When I run this my response is:
hello
10
I wanted to know if it is possible to make this run with only the variable c being shown.