Description
The intent of this text is to introduce you to computer programming using the Python programming language. Learning to program is a bit like learning to play piano, although quite a bit easier since we won’t have to program while keeping time according to a time signature. Programming is a creative process so we’ll be working on developing some creative skills. At the same time, there are certain patterns that can be used over and over again in this creative process. The goal of this text and the course you are taking is to get you familiar with these patterns and show you how they can be used in programs. After working through this text and studying and practicing you will be able to identify which of these patterns are needed to implement a program for a particular task and you will be able to apply these patterns to solve new and interesting problems.
As human beings our intelligent behavior hinges on our ability to match patterns. We are pattern-matchers from the moment we are born. We watch and listen to our parents and siblings to learn how to react to situations. Babies watch us to learn to talk, walk, eat, and even to smile. All these behaviors are learned through pattern matching. Computer Science is no different. Many of the programs we create in Computer Science are based on just a fewpatterns that we learn early in our education as programmers. Once we’ve learned the patterns we become effective programmers by learning to apply the patterns to new situations. As babies we are wired to learn quickly with a little practice. As we grow older we can learn to use patterns that are more abstract. That is what Computer Science is all about: the application of abstract patterns to solve new and interesting problems.
PRACTICE is important. There is a huge difference between reading something in this text or understanding what is said during a lecture and being able to do it yourself. At times this may be frustrating, but with practice you will get better at it. As you read the text make sure you take time to do the practice exercises. Practice exercises are clearly labeled with a gray background color. These exercises are your chance to use a concept that you have just learned. Answers to practice exercises are included at the end of each chapter so you can check your answers.