Synopses & Reviews
Synopsis
Learn to Program by Solving Problems is a practical introduction to programming using Python. The book emphasizes problem-solving strategies that teach you not only the mechanics of coding, but how to think like a savvy programmer. Computers are powerful problem-solving machines capable of doing almost anything, with the right instructions. That's where programming comes in, allowing us to communicate those instructions through a coding language like Python. In this beginners book, you'll learn by doing. You'll solve problems drawn from programming competitions and learn new Python features along the way.
Every chapter is driven by problems drawn directly from coding-challenge websites, where online judges test your code and provide targeted feedback if it's incorrect or inefficient. As you practice Pythonic techniques and develop core coding skills, you'll develop an understanding of data structures, algorithms, and other foundational aspects of programming that can be translated to other languages. Bonus exercises are also included so you can explore new concepts on your own, and multiple-choice questions throughout the text encourage you to critically consider the purpose of each piece of code.
You'll learn:
- Introductory ideas, like running Python code, working with strings, and using variables
- How to write programs that make decisions
- How to use while and for loops to repeatedly execute code
- How to use Python sets, lists, and dictionaries to organize, sort, and search data
- How to design programs using functions and top-down design
- How to use Python sets and dictionaries to organize, sort, and search data
- How to create complete-search algorithms, and use Big O notation to design more efficient code
By the end of the book, you'll not only become proficient in Python, but also learn the type of thinking required to solve problems with a computer. Because programming languages come and go; the way we solve problems does not.
Synopsis
Learn to Code by Solving Problems is a practical introduction to programming using Python. It uses coding-competition challenges to teach you the mechanics of coding and how to think like a savvy programmer. Computers are powerful problem-solving machines capable of doing almost anything, with the right instructions. That's where programming comes in, allowing us to communicate those instructions through a coding language like Python. This beginners book gets you writing programs right away, as you solve interesting problems drawn from real coding competitions while building Python skills.
Every chapter is driven by problems drawn directly from coding-challenge websites, where online judges test your solutions and provide targeted feedback. As you practice using core Pythonic features, functions, and techniques, you'll develop a clear understanding of data structures, algorithms, and other foundational aspects of programming useful in any language. Bonus exercises are also included so you can explore new concepts on your own, and multiple-choice questions throughout the text encourage you to critically consider the purpose of each piece of code.
You'll learn:
- Introductory ideas, like running Python code, working with strings, and using variables
- How to write programs that make decisions
- How to use while and for loops to repeatedly execute code
- How to use Python sets, lists, and dictionaries to organize, sort, and search data
- How to design programs using functions and top-down design
- How to use Python sets and dictionaries to organize, sort, and search data
- How to create complete-search algorithms, and use Big O notation to design more efficient code
By the end of the book, you'll not only become proficient in Python, but also learn the type of thinking required to solve problems with a computer. Because programming languages come and go; the way we solve problems does not.