Tiny Python Projects
Manning Publications (Verlag)
978-1-61729-751-9 (ISBN)
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.
Key Features
· 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
For readers with beginning programming skills in Python or another language.
About the technology
Simple yet powerful, Python is one of the world’s most popular programming languages. You can use Python to write everything from simple utility programs to complex web applications and deep learning models.
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.
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.
Welcome
Preface. Why Write Python? Chapters
0 Getting Started: Introduction and Installation Guide
1 How to write and test a Python program
2 The Crow’s Nest: Working with strings
3 Going on a picnic: Working with lists
4 Jump the Five: Working with dictionaries
5 Howler: Working with files and STDOUT
6 Words Count: Reading files/STDIN, iterating lists, formatting strings
7 Gashlycrumb: Looking items up in a dictionary
8 Apples and Bananas: Find and replace
9 Dial-A-Curse: Generating random insults from lists of words
10 Telephone: Randomly mutating strings
11 Bottles of Beer Song: Writing and testing functions
12 Ransom: Randomly capitalizing text
13 Twelve Days of Christmas: Algorithm design
14 Rhymer: Using regular expressions to create rhyming words
15 The Kentucky Friar: More regular expressions
16 The Scrambler: Randomly reordering the middles of words
17 Mad Libs: Using regular expressions
18 Gematria: Numeric encoding of text using ASCII values
19 Workout Of the Day: Parsing CSV file, creating text table output
20 Password Strength: Generating a secure and memorable password
21 Tic-Tac-Toe: Exploring state
22 Tic-Tac-Toe Redux: An interactive version with type hints
App A. Using argparse
MEAP VERSION 6
Epilogue
| Erscheinungsdatum | 16.01.2021 |
|---|---|
| Verlagsort | New York |
| Sprache | englisch |
| Maße | 185 x 234 mm |
| Gewicht | 808 g |
| Themenwelt | Mathematik / Informatik ► Informatik ► Programmiersprachen / -werkzeuge |
| ISBN-10 | 1-61729-751-8 / 1617297518 |
| ISBN-13 | 978-1-61729-751-9 / 9781617297519 |
| Zustand | Neuware |
| Informationen gemäß Produktsicherheitsverordnung (GPSR) | |
| Haben Sie eine Frage zum Produkt? |
aus dem Bereich