Python One-Liners

Write Concise, Eloquent Python Like a Professional



Bookstore > Books > Python One-Liners

Price$39.95 - $41.48
Rating
AuthorChristian Mayer
PublisherNo Starch Press
Published2020
Pages216
LanguageEnglish
FormatPaper book / ebook (PDF)
ISBN-101718500505
ISBN-139781718500501
EBook Hardcover Paperback

Python One-Liners will teach you how to read and write "one-liners": concise statements of useful functionality packed into a single line of code. You'll learn how to systematically unpack and understand any line of Python code, and write eloquent, powerfully compressed Python like an expert.

The book's five chapters cover tips and tricks, regular expressions, machine learning, core data science topics, and useful algorithms. Detailed explanations of one-liners introduce key computer science concepts and boost your coding and analytical skills.

You'll learn about advanced Python features such as list comprehension, slicing, lambda functions, regular expressions, map and reduce functions, and slice assignments.

You'll also learn how to: Leverage data structures to solve real-world problems, like using Boolean indexing to find cities with above-average pollution; Use NumPy basics such as array, shape, axis, type, broadcasting, advanced indexing, slicing, sorting, searching, aggregating, and statistics; Calculate basic statistics of multidimensional data arrays and the K-Means algorithms for unsupervised learning; Create more advanced regular expressions using grouping and named groups, negative lookaheads, escaped characters, whitespaces, character sets (and negative characters sets), and greedy/nongreedy operators; Understand a wide range of computer science topics, including anagrams, palindromes, supersets, permutations, factorials, prime numbers, Fibonacci numbers, obfuscation, searching, and algorithmic sorting.


  1. (3 books)


4 5 113

Similar Books


Perl One-Liners

Perl One-Liners

by Peteris Krumins

Part of the fun of programming in Perl lies in tackling tedious tasks with short, efficient, and reusable code. Often, the perfect tool is the one-liner, a small but powerful program that fits in one line of code and does one thing really well.In Perl One-Liners, author and impatient hacker Peteris Krumins takes you through more than 100 ...

Price:  $7.25  |  Publisher:  No Starch Press  |  Release:  2013

Data Science at the Command Line, 2nd Edition

Data Science at the Command Line, 2nd Edition

by Jeroen Janssens

This thoroughly revised guide demonstrates how the flexibility of the command line can help you become a more efficient and productive data scientist. You'll learn how to combine small yet powerful command-line tools to quickly obtain, scrub, explore, and model your data. To get you started, author Jeroen Janssens provides a Docker i...

Price:  $54.85  |  Publisher:  O'Reilly Media  |  Release:  2021

Raku One-Liners

Raku One-Liners

by Andrew Shitov

You are reading a book about the Raku programming language. This language has appeared as a rename of Perl 6 in October 2019.Like its parent, Perl 5, the Raku language keeps the spirit of being a powerful tool in many areas, from devops programs for configuration management through different command-line applications to concurrent web ser...

Price:  $12.14  |  Free ebook  |  Publisher:  Self-publishing  |  Release:  2019

Learn PowerShell in a Month of Lunches, 4th Edition

Learn PowerShell in a Month of Lunches, 4th Edition

by Travis Plunk, James Petty, Tyler Leonhardt, Don Jones, Jeffery Hicks

Learn PowerShell in a Month of Lunches, 4th Edition is a task-focused guide for administering your systems using PowerShell. It covers core language features and admin tasks, with each chapter a mini-tutorial you can easily complete in under an hour. Discover how PowerShell works on different operating systems, and start automating tasks ...

Price:  $35.99  |  Publisher:  Manning  |  Release:  2022

Microsoft Exchange 2010 PowerShell Cookbook

Microsoft Exchange 2010 PowerShell Cookbook

by Mike Pfeiffer

Microsoft Exchange Server 2010 is a complex messaging system with many features. In order to ease the burden on IT administrations, Exchange 2010 supports a management architecture built on Windows PowerShell 2.0, called the Exchange Management Shell. Using this management architecture, administrators can gain more efficiency then ever by...

Price:  $35.99  |  Publisher:  Packt Publishing  |  Release:  2011

Learn More Python 3 the Hard Way

Learn More Python 3 the Hard Way

by Zed A. Shaw

Zed Shaw has perfected the world's best system for becoming a truly effective Python 3.x developer. Follow it and you will succeed - just like the tens of millions of programmers he's already taught. You bring the discipline, commitment, and persistence; the author supplies everything else.In Learn Python 3 the Hard Way, Zed Sha...

Price:  $22.33  |  Publisher:  Addison-Wesley  |  Release:  2017

C and Python Applications

C and Python Applications

by Philip Joyce

Solve problems by embedding Python code in a C programs, SQL methods, Python sockets. This book uses rudimentary mathematics and basic programming to create practical Python applications for embedding. You'll start with an introduction to C and Python, assuming a fundamental understanding of what programming is. You will also review ...

Price:  $33.74  |  Publisher:  Apress  |  Release:  2021

Coffee Break Python Slicing

Coffee Break Python Slicing

by Christian Mayer

Puzzle-based learning is an active learning technique. With code puzzles, you will learn faster, smarter, and better.Coffee Break Python Slicing is all about growing your Python expertise - one coffee at a time. The focus lies on the important slicing technique to access consecutive data ranges. Understanding slicing thoroughly is crucial...

Free ebook  |  Publisher:  Self-publishing  |  Release:  2018