2 ways at least: you can type
>>> from xandy import xandy
and then use your function. The file must be in a place where python will find it (in a folder listed in your PYTHONPATH environment variable.
Second (and best) way, run python's built-in gui IDLE (look in the subfolder idlelib of your python library). When idle has started, choose to open your program in the file menu, then select RUN MODULE in the Run menu and your program will run in the shell.
Gribouillis
Posting Maven
2,786 posts since Jul 2008
Reputation Points: 1,044
Solved Threads: 691