sorry for the noob question.
i'm new to python. i'm trying to learn about classes and def.
i created a simple one here called test2.py
class test:
def Test1(T1):
T1 = "this is a test"
i have another python file, which is the main program called test1.py
from test2 import test
print Test1
but i keep getting this error:
Traceback (most recent call last):
File "test1.py", line 5, in <module>
print Test1
NameError: name 'Test1' is not defined
am i doing this correct? can someone help me?