You will learn a great deal more by typing the code in yourself rather than copy/paste too.

This is a good ideal to cling to for later learning practices. When you learn somthing new, you type it as it says in a book and may think "I wonder how this works..." as you type it. It then encourages you to dive deeper into how certain aspects and algorithms of the language work.