Python How-To: 63 techniques to improve your Python code

Original price was: $121.00.Current price is: $33.99.

🔒 Secure Checkout ⚡ Instant Digital Download

Have you ever asked yourself, “How do I do that in Python?” If so, you’ll love this practical collection of the most important Python techniques.

Python How-To includes over 60 detailed answers to questions like:

  • How do I join and split strings?
  • How do I access dictionary keys, values, and items?
  • How do I set and use the return value in function calls?
  • How do I process JSON data?
  • How do I create lazy attributes to improve performance?
  • How do I change variables in a different namespace?

…and much more

Python How-To walks you through the most important coding techniques in Python. Whether you’re doing data science, building web applications, or writing admin scripts, you’ll find answers to your “how-to” questions in this book. Inside you’ll find important insights into both Python basics and deep-dive topics to help you skill-up at any stage of your Python career. Author Yong Cui’s clear and practical writing is instantly accessible and makes it easy to take advantage of Python’s versatile tools and libraries. Perfect to be read both from cover to cover, and whenever you need help troubleshooting your code.

Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.

About the Technology

Python How-To uses a simple but powerful method to lock in 63 core Python skills. You’ll start with a question, like “How do I find items in a sequence?” Next, you’ll see an example showing the basic solution in crystal-clear code. You’ll then explore interesting variations, such as finding substrings or identifying custom classes. Finally, you’ll practice with a challenge exercise before moving on to the next How-To.

About the Book

This practical guide covers all the language features you’ll need to get up and running with Python. As you go, you’ll explore best practices for writing great Python code. Practical suggestions and engaging graphics make each important technique come to life. Author Yong Cui’s careful cross-referencing reveals how you can reuse features and concepts in different contexts.

What’s Inside

How to:

  • Join and split strings
  • Access dictionary keys, values, and items
  • Set and use the return value in function calls
  • Process JSON data
  • Create lazy attributes to improve performance
  • Change variables in a different namespace

…and much more.

About the Reader

For beginning to intermediate Python programmers.

About the Author

Dr. Yong Cui has been working with Python in bioscience for data analysis, machine learning, and tool development for over 15 years.

Table of Contents

1 Developing a pragmatic learning strategy
PART 1 – USING BUILT-IN DATA MODELS
2 Processing and formatting strings
3 Using built-in data containers
4 Dealing with sequence data
5 Iterables and iterations
PART 2 – DEFINING FUNCTIONS
6 Defining user-friendly functions
7 Using functions beyond the basics
PART 3 – DEFINING CLASSES
8 Defining user-friendly classes
9 Using classes beyond the basics
PART 4 – MANIPULATING OBJECTS AND FILES
10 Fundamentals of objects
11 Dealing with files
PART 5 – SAFEGUARDING THE CODEBASE
12 Logging and exception handling
13 Debugging and testing
PART 6 – BUILDING A WEB APP
14 Completing a real project

Reviews

There are no reviews yet.

Be the first to review “Python How-To: 63 techniques to improve your Python code”

Offer Unlocked !

New item(s) have been added to your cart.

Quantity: 1
Total: $33.99

Almost there! 🎉 Add a bit more to your cart and unlock 20% OFF your entire order!

VPS Essentials - The Practical Guide Original price was: $66.00.Current price is: $24.99.
MySQL Uncovered: Internals, Trace Analysis, and Performance Original price was: $1,999.99.Current price is: $29.97.
Laws of Software Engineering Original price was: $34.99.Current price is: $13.96.
Learn Generative AI with PyTorch: Build GANs, transformers, and diffusion models
5.00 out of 5
Original price was: $235.86.Current price is: $35.00.
Next-Level Web Design Original price was: $700.00.Current price is: $47.99.
The Self-Taught Programmer: The Definitive Guide to Programming Professionally Original price was: $31.87.Current price is: $10.09.
Microservices in .NET, Second Edition 2nd ed. Original price was: $59.99.Current price is: $23.00.
Starting Data Analytics with Generative AI and Python Original price was: $160.00.Current price is: $26.95.
Claude Code: The Complete Course Original price was: $40.00.Current price is: $9.19.
The Art of Computer Programming (6 books)
4.95 out of 5
Original price was: $499.99.Current price is: $49.99.
Math for Web Design: Precision layout and animation Original price was: $59.99.Current price is: $21.99.
Introduction to Algorithms, fourth edition Original price was: $150.00.Current price is: $22.49.
PostgreSQL Uncovered: Internals, Trace Analysis, and Performance Original price was: $599.19.Current price is: $47.99.
The Computer Science Book: For self-taught developers
5.00 out of 5
Original price was: $49.99.Current price is: $21.05.
Introduction to CI/CD (Continuous Integration, Delivery & Deployment) Original price was: $174.99.Current price is: $15.99.
A Simple Guide to Retrieval Augmented Generation Original price was: $69.99.Current price is: $21.99.
Python Fundamentals: with GenAI, 2nd Edition Original price was: $299.97.Current price is: $36.00.
Radical Design – A Rebellious Web Design Course Original price was: $199.99.Current price is: $36.99.
Optimization Algorithms: AI techniques for design, planning, and control problems Original price was: $69.99.Current price is: $28.00.
Hands-On Large Language Models: Language Understanding and Generation Original price was: $79.99.Current price is: $22.99.
System Design Interview – An Insider’s Guide: Volume 2 Original price was: $60.00.Current price is: $21.91.
The Digital Weaver: Architecting connected digital systems for the AI era Original price was: $79.95.Current price is: $22.99.
The Quick Python Book 3rd Edition Original price was: $125.76.Current price is: $30.09.
Claude Code: AI Crash Course for Developers Original price was: $24.99.Current price is: $9.00.
Data Science for All, Global Edition Original price was: $105.72.Current price is: $22.99.
A Pythonic Adventure: From Python basics to a working web app Original price was: $70.99.Current price is: $22.00.
Red Team Engineering: The Art of Building Offensive Tools and Infrastructure Original price was: $79.99.Current price is: $24.65.
Adobe After Effects Classroom in a Book 2026 Release Original price was: $69.99.Current price is: $23.95.