Your brain on Programming. Here you are trying to learn something, while here your brain is doing you a favor by making sure the learning doesn't stick. Your brain's thinking, "Better leave room for more important things, like which wild animals to avoid and whether naked snowboarding is a bad idea." So how do you trick your brain into thinking that your life depends on knowing Programming?
Who is this book for? xxiv
We know what you're thinking xxv
Bend your brain into submission xxix
Read me xxx
The technical review team xxxii
starting -to code Finding your way
Writing programs gives you the power to control your PC.
Almost everyone knows how to use a computer, but few people take the next step and learn how to control it. If you use other people's software, you will always be limited by what other people think you want to do. Write your own programs and the only limit will be your own imagination. Programming will make you more creative, it will make you think more precisely, and it will teach you to analyze and solve problems logically.
Do you want to be programmed or be the programmer?
Programming lets you do more 2
So how do you run your code? 5
Create a new program file 6
Prepare and run your code 7
A program is more than a list of commands 12
Codeville: Your program is like a network of roads 13
Branches are code intersections 14
if/else branches 15
The Python code needs interconnecting paths 20
Python uses indents to connect paths 21
Loops let you run the same piece of code over and over again 28
Python's while loop 29
Your Programming Toolbox 35
Every string has its place
Was this article helpful?