Please use [code ] tags...
Code:
#!/usr/bin/python
def examplr(str):
print str
Based on your code, you've named your function exampl
r.
If that's just a typo in your post, and you're correctly calling the function, then it sounds like you haven't imported your module into Python. If you're using IDLE, hit F5 to run the script. Otherwise, run the interpreter in the directory you've saved example.py and run
to bring the module into the current namespace. Then, you can access you function as
Code:
example.example('foo')