Nov-11-2020, 03:42 AM
a.py
How do I change a variable from one file to another without using json/dict/list?
TIA
ssid = 'myssid' password = 'mypass' ap_mode = 'yes'b.py
import a
print(a.ap_mode)
# output -> yes
# modify variable
a.ap_mode.append('no') # not correct
print(a.ap_mode)
# output -> yes "it should be no"Hi,How do I change a variable from one file to another without using json/dict/list?
TIA
