I have just started learning python. I am using python 2.7.5 I created the test module named "t.py" as below:
$cat > t.py
import os
def greeting(name):
print("Hello, " + name)
c=os.system('clear')
When I am trying to use the module in python c is not working but greeting is working
$python
>>> t.greeting("test")
Hello, test
>>> t.c
0
Can you please advise why t.c is not clearing the screen within the python.Thanks.