This question has been answered severally but no application has fixed it for me. I have class a, b and c, I initialize a variable in class a, i want to reassign the value in class b and call the new value in class c. My code is too long to copy it entirely, but this is where the logic is not adding up. Why am i not getting output as John, only ''
a.py
location = ''
username = ''
b.py
import overall
self.spinnertext = "John"
overall.username = self.spinnertext
c.py
import overall
#Set the username
uname = overall.username
print(uname)