Answer the question
In order to leave comments, you need to log in
How to get attribute value from another module?
There is a plants.py file, and it contains the following class:
class Plants:
def __init__(self):
self.touched = False
def is_touched(self):
if not self.touched:
self.touched = True
print(self.word)
def is_untouched(self):
if self.touched:
self.touched = False
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question