Very basic question probably but I cannot find the answer. I have created a python program called "test.py." It contains the following code:
def test():
print 'test'
I would like to run this program in my terminal (Mac) and have 'test' printed in the terminal. When I run the program as follows:
python test.py
it seems as if the program is executed but it does not print 'test'. How do I do that? Thanks.