Python One Liners

Python One Liners
Author: Christian Mayer
Publsiher: No Starch Press
Total Pages: 217
Release: 2020-05-12
Genre: Computers
ISBN: 9781718500518

Download Python One Liners Book in PDF, Epub and Kindle

Python programmers will improve their computer science skills with these useful one-liners. 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 By the end of the book, you'll know how to write Python at its most refined, and create concise, beautiful pieces of "Python art" in merely a single line.

Perl One Liners

Perl One Liners
Author: Peteris Krumins
Publsiher: No Starch Press
Total Pages: 172
Release: 2013-11-13
Genre: Computers
ISBN: 9781593275204

Download Perl One Liners Book in PDF, Epub and Kindle

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 compelling one-liners that do all sorts of handy things, such as manipulate line spacing, tally column values in a table, and get a list of users on a system. This cookbook of useful, customizable, and fun scripts will even help hone your Perl coding skills, as Krumins dissects the code to give you a deeper understanding of the language. You'll find one-liners that: * Encode, decode, and convert strings * Generate random passwords * Calculate sums, factorials, and the mathematical constants π and e * Add or remove spaces * Number lines in a file * Print lines that match a specific pattern * Check to see if a number is prime with a regular expression * Convert IP address to decimal form * Replace one string with another And many more! Save time and sharpen your coding skills as you learn to conquer those pesky tasks in a few precisely placed keystrokes with Perl One-Liners.

Impractical Python Projects

Impractical Python Projects
Author: Lee Vaughan
Publsiher: No Starch Press
Total Pages: 426
Release: 2018-11-27
Genre: Computers
ISBN: 9781593278915

Download Impractical Python Projects Book in PDF, Epub and Kindle

Impractical Python Projects is a collection of fun and educational projects designed to entertain programmers while enhancing their Python skills. It picks up where the complete beginner books leave off, expanding on existing concepts and introducing new tools that you'll use every day. And to keep things interesting, each project includes a zany twist featuring historical incidents, pop culture references, and literary allusions. You'll flex your problem-solving skills and employ Python's many useful libraries to do things like: - Help James Bond crack a high-tech safe with a hill-climbing algorithm - Write haiku poems using Markov Chain Analysis - Use genetic algorithms to breed a race of gigantic rats - Crack the world's most successful military cipher using cryptanalysis - Derive the anagram, "I am Lord Voldemort" using linguistical sieves - Plan your parents' secure retirement with Monte Carlo simulation - Save the sorceress Zatanna from a stabby death using palingrams - Model the Milky Way and calculate our odds of detecting alien civilizations - Help the world's smartest woman win the Monty Hall problem argument - Reveal Jupiter's Great Red Spot using optical stacking - Save the head of Mary, Queen of Scots with steganography - Foil corporate security with invisible electronic ink Simulate volcanoes, map Mars, and more, all while gaining valuable experience using free modules like Tkinter, matplotlib, Cprofile, Pylint, Pygame, Pillow, and Python-Docx. Whether you're looking to pick up some new Python skills or just need a pick-me-up, you'll find endless educational, geeky fun with Impractical Python Projects.

Automate the Boring Stuff with Python

Automate the Boring Stuff with Python
Author: Albert Sweigart
Publsiher: Unknown
Total Pages: 135
Release: 2020
Genre: Computer programming
ISBN: OCLC:1135503680

Download Automate the Boring Stuff with Python Book in PDF, Epub and Kindle

Python for Everybody

Python for Everybody
Author: Charles R. Severance
Publsiher: Unknown
Total Pages: 242
Release: 2016-04-09
Genre: Electronic Book
ISBN: 1530051126

Download Python for Everybody Book in PDF, Epub and Kindle

Python for Everybody is designed to introduce students to programming and software development through the lens of exploring data. You can think of the Python programming language as your tool to solve data problems that are beyond the capability of a spreadsheet.Python is an easy to use and easy to learn programming language that is freely available on Macintosh, Windows, or Linux computers. So once you learn Python you can use it for the rest of your career without needing to purchase any software.This book uses the Python 3 language. The earlier Python 2 version of this book is titled "Python for Informatics: Exploring Information".There are free downloadable electronic copies of this book in various formats and supporting materials for the book at www.pythonlearn.com. The course materials are available to you under a Creative Commons License so you can adapt them to teach your own Python course.

The Hitchhiker s Guide to Python

The Hitchhiker s Guide to Python
Author: Kenneth Reitz,Tanya Schlusser
Publsiher: "O'Reilly Media, Inc."
Total Pages: 338
Release: 2016-08-30
Genre: Computers
ISBN: 9781491933220

Download The Hitchhiker s Guide to Python Book in PDF, Epub and Kindle

The Hitchhiker's Guide to Python takes the journeyman Pythonista to true expertise. More than any other language, Python was created with the philosophy of simplicity and parsimony. Now 25 years old, Python has become the primary or secondary language (after SQL) for many business users. With popularity comes diversity—and possibly dilution. This guide, collaboratively written by over a hundred members of the Python community, describes best practices currently used by package and application developers. Unlike other books for this audience, The Hitchhiker’s Guide is light on reusable code and heavier on design philosophy, directing the reader to excellent sources that already exist.

Python Data Science Handbook

Python Data Science Handbook
Author: Jake VanderPlas
Publsiher: "O'Reilly Media, Inc."
Total Pages: 743
Release: 2016-11-21
Genre: Computers
ISBN: 9781491912133

Download Python Data Science Handbook Book in PDF, Epub and Kindle

For many researchers, Python is a first-class tool mainly because of its libraries for storing, manipulating, and gaining insight from data. Several resources exist for individual pieces of this data science stack, but only with the Python Data Science Handbook do you get them all—IPython, NumPy, Pandas, Matplotlib, Scikit-Learn, and other related tools. Working scientists and data crunchers familiar with reading and writing Python code will find this comprehensive desk reference ideal for tackling day-to-day issues: manipulating, transforming, and cleaning data; visualizing different types of data; and using data to build statistical or machine learning models. Quite simply, this is the must-have reference for scientific computing in Python. With this handbook, you’ll learn how to use: IPython and Jupyter: provide computational environments for data scientists using Python NumPy: includes the ndarray for efficient storage and manipulation of dense data arrays in Python Pandas: features the DataFrame for efficient storage and manipulation of labeled/columnar data in Python Matplotlib: includes capabilities for a flexible range of data visualizations in Python Scikit-Learn: for efficient and clean Python implementations of the most important and established machine learning algorithms

Python in a Nutshell

Python in a Nutshell
Author: Alex Martelli
Publsiher: "O'Reilly Media, Inc."
Total Pages: 734
Release: 2006-07-14
Genre: Computers
ISBN: 9780596100469

Download Python in a Nutshell Book in PDF, Epub and Kindle

Demonstrates the programming language's strength as a Web development tool, covering syntax, data types, built-ins, the Python standard module library, and real world examples.