Cover of Python How-To

EPUB · English

Python How-To

63 techniques to improve your Python code

Price and availability

$67.99

Available in: Andorra, Austria, Australia, Belgium, Bulgaria, Canada, Switzerland, Cyprus, Czechia, Germany, Denmark, Estonia, Spain, Finland, France, United Kingdom, Guernsey, Greece, Croatia, Hungary, Ireland, Isle of Man, Iceland, Italy, Jersey, Japan, Liechtenstein, Lithuania, Luxembourg, Latvia, Monaco, Malta, Netherlands, Norway, Poland, Portugal, Romania, Sweden, Slovenia, Slovakia, San Marino, United States, Vatican City, South Africa

Stores: US, UK, Canada, EU, Australia.

Sign in to buy

The price is re-checked by the server before payment.

For personal use under the eBook licence.

Format
EPUB
DRM
Not stated by the publisher
Language
English
Publisher
Manning
Published
22 August 2023
ISBN
9781638352037
Subjects
Computing & information technology, Computing and Information Technology

About this book

Have you ever asked yourself, How do I do that in Python? If so, youll 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 morePython How-To walks you through the most important coding techniques in Python. Whether youre doing data science, building web applications, or writing admin scripts, youll find answers to your how-to questions in this book. Inside youll 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 Cuis clear and practical writing is instantly accessible and makes it easy to take advantage of Pythons versatile tools and libraries. Perfect to be read both from cover to cover, and whenever you need help troubleshooting your code.About the TechnologyPython How-To uses a simple but powerful method to lock in 63 core Python skills. Youll start with a question, like How do I find items in a sequence? Next, youll see an example showing the basic solution in crystal-clear code. Youll then explore interesting variations, such as finding substrings or identifying custom classes. Finally, youll practice with a challenge exercise before moving on to the next How-To.About the BookThis practical guide covers all the language features youll need to get up and running with Python. As you go, youll explore best practices for writing great Python code. Practical suggestions and engaging graphics make each important technique come to life. Author Yong Cuis careful cross-referencing reveals how you can reuse features and concepts in different contexts.Whats InsideHow 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 ReaderFor beginning to intermediate Python programmers.About the AuthorDr. Yong Cui has been working with Python in bioscience for data analysis, machine learning, and tool development for over 15 years.Table of Contents1 Developing a pragmatic learning strategyPART 1 - USING BUILT-IN DATA MODELS2 Processing and formatting strings3 Using built-in data containers4 Dealing with sequence data5 Iterables and iterationsPART 2 - DEFINING FUNCTIONS6 Defining user-friendly functions7 Using functions beyond the basicsPART 3 - DEFINING CLASSES8 Defining user-friendly classes9 Using classes beyond the basicsPART 4 - MANIPULATING OBJECTS AND FILES10 Fundamentals of objects11 Dealing with filesPART 5 - SAFEGUARDING THE CODEBASE12 Logging and exception handling13 Debugging and testingPART 6 - BUILDING A WEB APP14 Completing a real project

Bibliographic data © Gardners Books Ltd.