副标题: Coding and testing with puzzles and games
电子书下载格式:pdf
作者:KenYouens-Clark
出版时间:2020-8-8
书籍简介:
Tiny Python Projects teaches you the big ideas of Python programming through small puzzles, tasks, and games. Each chapter challenges you with a fun new Python program for you to write and run, including a Shakespearean insult generator, an unbreakable password creator, and various text encoders. As you practice core Python language features and coding skills, you’ll also explore the principles of test-driven development by running your programs against a suite of specially designed tests. Designed for reading cover to cover or just dipping into the chapters that interest you, this entertaining book will have you parsing command-line arguments, getting interactive user input, and understanding many other programming techniques that scale easily from tiny Python projects to big ones!
what's inside
Write command-line Python programs
Process a variety of command-line arguments, options, and flags
Write and run tests for programs and functions
Manipulate Python data structures including strings, lists, tuples, and dictionaries
Use list and dictionary comprehensions and higher-order functions like map and filter
Write and use regular expressions
Use and control of randomness
Downloadable testing suites for each project
作者简介:
Ken Youens-Clark works at the University of Arizona as a senior scientific programmer. He has an MS in biosystems engineering, and has been programming for over 20 years