O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Modern Python Solutions – Part 1

Video Description

The latest in modern Python recipes for the busy modern programmer covering the essential fundamentals of Python Programming

About This Video

  • Develop succinct, expressive programs in Python

  • Learn the best practices and common idioms through carefully explained and structured recipes

  • Discover new ways to apply Python for the new age of development

  • In Detail

    Python is the preferred choice of developers, engineers, data scientists, and hobbyists everywhere. It is a great scripting language that can power your applications and provide great speed, safety, and scalability. By exposing Python as a series of simple recipes, you can gain insight into specific language features in a particular context. Having a tangible context helps make the language or standard library feature easier to understand.This video comes with over 100 recipes on the latest version of Python. The recipes will benefit everyone ranging from beginner to an expert. The video is broken down into 13 sections that build from simple language concepts to more complex applications of the language.The recipes will touch upon all the necessary Python concepts related to data structures, OOP, functional programming, as well as statistical programming. You will get acquainted with the nuances of Python syntax and how to effectively use the advantages that it offers. You will end the book equipped with the knowledge of testing, web services, and configuration and application integration tips and tricks.The recipes take a problem-solution approach to resolve issues commonly faced by Python programmers across the globe. You will be armed with the knowledge of creating applications with flexible logging, powerful configuration, and command-line options, automated unit tests, and good documentation.

    Table of Contents

    1. Chapter 1 : Numbers, Strings, and Tuples
      1. The Course Overview 00:03:22
      2. Creating Meaningful Names and Using Variables 00:11:38
      3. Working with Large and Small Integers 00:08:03
      4. Choosing between Float, Decimal, and Fraction 00:12:55
      5. Choosing between True Division and Floor Division 00:05:23
      6. Rewriting an Immutable String 00:08:57
      7. String Parsing with Regular Expressions 00:06:14
      8. Building Complex Strings with “template”.format() 00:06:13
      9. Building Complex Strings from Lists of Characters 00:04:44
      10. Using the Unicode Characters that aren't on Our Keyboards 00:03:27
      11. Encoding Strings-Creating ASCII and UTF8 Bytes 00:04:29
      12. Decoding Bytes, How to Get Proper Characters from Some Bytes 00:02:34
      13. Using Tuples of Items 00:04:16
    2. Chapter 2 : Statements and Syntax
      1. Writing Python Script and Module Files 00:07:48
      2. Writing Long Lines of Code 00:08:10
      3. Including Descriptions and Documentation 00:05:02
      4. Writing Better RST Markup in docstring 00:04:04
      5. Designing Complex if…elif Chains 00:04:43
      6. Designing a While Statement that Terminates Properly 00:06:12
      7. Avoiding a Potential Problem with Break Statements 00:05:05
      8. Leveraging the Exception Matching Rules 00:04:41
      9. Avoiding a Potential Problem With an Except:Clause 00:02:05
      10. Chaining Exceptions with the Raise from Statement 00:03:01
      11. Managing a Context Using the With Statement 00:05:24
    3. Chapter 3 : Function Definitions
      1. Designing Functions with Optional Parameters 00:11:03
      2. Using Super Flexible Keyword Parameter 00:05:16
      3. Forcing Keyword-only Argument with the * Separator 00:04:19
      4. Writing Explicit Types on Function Parameters 00:04:47
      5. Picking an Order for Parameters Based on Partial Functions 00:06:16
      6. Writing Clear Documentation Strings 00:04:14
      7. Designing Recursive Functions Around Python’s Stack Limit 00:04:23
      8. Writing Reusable Script with the Script Library Switch 00:04:31
    4. Chapter 4 : Built-in Data Structures – List, Sets, and Dict
      1. Choosing a Data Structure 00:09:38
      2. Building Lists – Literals, Appending, and Comprehensions 00:09:58
      3. Slicing And Dicing a List 00:05:20
      4. Deleting From a List 00:09:14
      5. Reversing a Copy of a List 00:04:54
      6. Using Set Methods and Operators 00:08:37
      7. Removing Items from a Set 00:04:19
      8. Creating Dictionaries 00:05:34
      9. Removing from Dictionaries 00:04:16
      10. Controlling the Order of the Dict Keys 00:03:49
      11. Handling Dictionaries and Sets in doctest Examples 00:02:25
      12. Understanding Variables, References, and Assignment 00:03:24
      13. Making Shallow and Deep Copies of Objects 00:05:47
      14. Avoiding Mutable Default Values for Function Parameters 00:06:10
    5. Chapter 5 : User Inputs and Outputs
      1. Using Features of the print() Functions 00:07:25
      2. Using input() and getpass() for User Input 00:08:40
      3. Debugging with “Format”.Format_Map(Vars()) 00:03:17
      4. Using Argparse to Get Command-line Input 00:06:58
      5. Using CMD for Creating Command-line Applications 00:06:06
      6. Using the OS Environment Settings 00:04:57