I am a newbie in python. I am trying to code a very basic function but getting errors. I dont know the reason behind it. Example code:
def printme( str ):
print str;
return;
printme("My string");
This should execute logically but it gives me the following error:
Traceback (most recent call last):
File "stdin", line 1, in "module"
NameError: name 'printme' is not defined
Any suggestions are welcome...
returnline isn't aligned with theprintstr, it's the name of a built-in type and overriding it is a Bad Idea.