Skip to Content
Python Workout
book

Python Workout

by Reuven M. Lerner
July 2020
Beginner to intermediate
248 pages
6h 58m
English
Manning Publications
Content preview from Python Workout

contents

preface

acknowledgments

about this book

about the author

about the cover illustration

1 Numeric types

Useful references

Exercise 1 Number guessing game

Exercise 2 Summing numbers

Exercise 3 Run timing

Exercise 4 Hexadecimal output

2 Strings

Useful references

Exercise 5 Pig Latin

Exercise 6 Pig Latin sentence

Exercise 7 Ubbi Dubbi

Exercise 8 Sorting a string

3 Lists and tuples

Exercise 9 First-last

Exercise 10 Summing anything

Exercise 11 Alphabetizing names

Exercise 12 Word with most repeated letters

Exercise 13 Printing tuple records

4 Dictionaries and sets

Hashing and dicts

Sets

Exercise 14 Restaurant

Exercise 15 Rainfall

Exercise 16 Dictdiff

Exercise 17 How many different numbers? ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Python for Programmers

Python for Programmers

Paul Deitel, Harvey Deitel
Python One-Liners

Python One-Liners

Christian Mayer

Publisher Resources

ISBN: 9781617295508Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentErrata PagePurchase Link