I'm trying to use a class variable on another class in on another script, but I'm not sure how that's possible. I've seen how to use methods or functions, but not variables.
For example something like this
#old.py
class Sassy:
bbq = "nice"
lol = "funny"
def DoesNothing(self):
#this is the method's body and nothing really goes here
How can I use bbq and lol on a new script?
Is this the right way?
#new.py
from old import *
class HeySexy:
new = Sassy()
def ShowMeThatString(self):
print(self.new.bbq)