Python Essentials

Predlog za prevod

About This Book

Learn the essentials of Python programming to get you up and coding effectively

Get up-to-speed with the most important built-in data structures in Python, using sequences, sets, and mappings

Explore typical use cases for various features in Python through this compact guide

Who This Book Is For

This book is designed for Python 2 developers who want to get to grips with Python 3 in a short period of time. It covers the key features of Python, assuming you are familiar with the fundamentals of Python 2.

What You Will Learn

Use Python interactively and master the art of writing efficient Python scripts

Learn techniques for working with string data, including how to use regular expressions to parse strings

Get to know how the short-circuit and if-else logic operators work

Explore mutable data structures including list, set, and dict

Define functions with positional and optional parameters, and learn to use keyword argument values when calling a function

Write generator functions, generator expressions, and comprehensions

Master the use of exceptions for handling errors and other unexpected conditions

Understand the importance of working with files, context manager, and the with statement

In Detail

Python Essentials provides a vital tour of the most critical features of Python. Starting with setup and installation, you will soon dive into exploring built-in-library types, Python's rich collection of operators and built-in functions, variables, assignment and scoping rules.

From this foundation, you will explore functions, a crucial aspect of any programming language, including considerable sophistication in defining parameters to a function and providing argument values. Explore advanced functional programming using generator expressions, comprehensions, and generator functions. Handle file input and output using web services and context managers, exception handling and explore wider, popular frameworks.

Through this concise and practical guide, you will explore all you need to know to leverage this powerful, and industry-standard, programming language.

Authors

Steven F. Lott

Steven F. Lott has been programming since the 70s, when computers were large, expensive, and rare. As a contract software developer and architect, he has worked on hundreds of projects, from very small to very large. He's been using Python to solve business problems for over 10 years.

Preporučujemo

Predlog za prevod

This book is for developers who want to use Python to write programs that lean heavily on functional programming design patterns. You should be comfortable with Python programming, but no knowledge of functional programming paradigms is needed.

Predlog za prevod

OVU KNJIGU JOŠ NE MOŽETE DA KUPITE. Python is a free and powerful tool that can be used to build a financial calculator and price options, and can also explain many trading strategies and test various hypotheses. This book details the steps needed to retrieve time series data from different public data sources.