Page 11 -
P. 11

table of contents


                                     starting to code
                              1      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





            guess <= 5?














           x
   6   7   8   9   10   11   12   13   14   15   16