Newbie question......... I'm just learning python and need some help with creating functions. I want to create a function that is callable from python shell. I write a script as follows, #!/usr/bin/python def examplr(str): print str save it as example.py, then in shell try example('ddd') but it returns an error, NameError: name 'example' is not defined. Anyone know what I am doing wrong?