Learn to Code by Solving Problems: A Python Programming Primer

Daniel Zingaro

買這商品的人也買了...

相關主題

商品描述

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.

商品描述(中文翻譯)

《透過解決問題學習編程》是一本使用Python進行實際編程介紹的實用書籍。它使用編程競賽挑戰來教授編程的技巧和如何像一個精明的程序員思考。

電腦是強大的問題解決機器,只要有正確的指令,它們可以做到幾乎任何事情。這就是編程的用途,它允許我們通過像Python這樣的編程語言來傳達這些指令。這本初學者書籍讓你立即開始編寫程序,同時解決來自真實編程競賽的有趣問題,同時建立Python技能。

每一章都以直接來自編程挑戰網站的問題為驅動,網站上的在線評判會測試你的解決方案並提供有針對性的反饋。通過練習使用核心的Python特性、函數和技巧,你將對數據結構、算法和其他基礎編程方面有清晰的理解,這些對任何語言都有用。書中還包含了額外的練習,讓你可以自行探索新概念,並且全書中的多項選擇題鼓勵你批判性地考慮每段代碼的目的。

你將學到:
- 初步的概念,如運行Python代碼、處理字符串和使用變量
- 如何編寫做出決策的程序
- 如何使用while和for循環重複執行代碼
- 如何使用Python的集合、列表和字典來組織、排序和搜索數據
- 如何使用函數和自上而下的設計來設計程序
- 如何使用Python的集合和字典來組織、排序和搜索數據
- 如何創建完全搜索算法,並使用大O符號來設計更高效的代碼

通過閱讀本書,你不僅將熟練掌握Python,還將學會使用計算機解決問題所需的思維方式。因為編程語言會興衰,但解決問題的方式卻不會改變。

作者簡介

Dr. Daniel Zingaro is an award-winning Associate Professor of Computer Science in the teaching stream at University of Toronto Mississauga, and is internationally recognized for his expertise in Active Learning. He is also the author of Algorithmic Thinking (No Starch Press, 2021).

作者簡介(中文翻譯)

Dr. Daniel Zingaro 是多倫多大學密西沙加分校的教學流程中獲獎的計算機科學副教授,並且在主動學習方面享有國際聲譽。他也是《Algorithmic Thinking》(No Starch Press, 2021)的作者。