From what I can deduct you are asking the very basic question:
How can I type, or copy and paste a Python program and run it?
What you need is an Editor, preferrably an Editor that can run your code after you have it ready. Those type of Editors are called IDE, a common one for Python is the old ugly IDLE that comes with your Python installation. A much more refreshing product is DrPython written for use in Highschools.
A very basic Copy and Paste, press down your left mouse button and drag it across the code on a Windows display, so all the code you are interested in is highlighted. Now point the mouse cursor onto the highlighted part and right click. A little popup menu comes up that lists amongst other things the word copy. Click on copy. Now your selected text/code is in the clipboard memory. Next go to the editor area of your IDE and right click again to show the little menu. Select Paste and the code you copied before will be pasted to the editor where ever your mouse cursor was.
If you use Windoze, you could use NotePad as an editor, but you can't run code from there.
Some pretty primitive instructions how to use the IDLE IDE are at:
http://www.daniweb.com/techtalkforums/thread20774.html
or Google for IDLE