I am attempting to code in Python (recently getting back into it). I want to use the def keyword. But it doesn't seem to work. I am using Python 2.7.5:
The code is
def main():
print "This is a test"
And the IDLE console shows it as:
>>> ================================ RESTART ================================
>>>
>>>
Keep in mind, that if I remove the whole def command completely, the statements will work. Any insight on this?
main()after the function definition to call the function.