Description
Book SynopsisA refreshingly different and engaging way of learning how to program using Python. This book includes example code and brief user-friendly explanations, along with 150 progressively trickier challenges. As readers are actively involved in their learning, they quickly master the new skills and gain confidence in creating their own programs.
Table of ContentsIntroduction; Downloading Python; Some tips; Part I. Learning Python: Challenges 1–11. The basics; Challenges 12–19. If statements; Challenges 20–26. Strings; Challenges 27–34. Maths; Challenges 35–44. For loop; Challenges 45–51. While loop; Challenges 52–59. Random; Challenges 60–68. Turtle graphics; Challenges 69–79. Tuples, lists and dictionaries; Challenges 80–87. More string manipulation; Challenges 88–95. Numeric arrays; Challenges 96–103. 2D lists and dictionaries; Challenges 105–110. Reading and writing to a text file; Challenges 111–117. Reading and writing to a .csv File; Challenges 118–123. Subprograms; Challenges 124–132. Tkinter GUI; Challenges 133–138. More Tkinter; Challenges 139–145. SQLite; Part II. Chunky Challenges: 146 – Shift code; 147 – Mastermind; 148 – Passwords; 149 – Times tables (GUI); 150 – Art gallery; What next?; Glossary; Index.