Python Tips, Tricks and Techniques

Python Tips, Tricks and Techniques

From first-class functions to abstract base classes, apply Pythonic tricks to your application and be a Python rockstar

Bestseller
Created By: Colibri Ltd
16.05 9.62

About This Course

You have been programming in Python for a while now. You know that Python is easy to get started with, but hard to get right. You want to write Pythonic code to make an impact in both the open source arena and your career.

This course is will take you from a Python outsider to an insider. You will benefit from insights from the Python documentation, PEPs, and online developer communities to learn the ultimate Pythonic ways to tackle common programming patterns. This course covers tips, tricks, and techniques for loops, data structures, object-oriented programming, functions, and more, helping you work on ordered collections and key-value stores for dictionaries. You will be able to increase the speed and performance of your code while making it easier to debug. Start writing cleaner code for your applications and learn to organize it better in just 3 hours.

No other course can transform every corner of your Python code. Take this course NOW and become an overnight Python rockstar developer.

All the code and supporting files are available on GitHub at - https://github.com/PacktPublishing/Python-Tips-Tricks-Techniques-

This course uses Python 3.6, while not the latest version available, it provides relevant and informative content for legacy users of Python.

Other Information

  • Certificate will provided in this course on Completion
  • Full lifetime access
  • Available on Mobile & Laptop

What Students Will Learn In Your Course?

* Master lists and list comprehension to write less clunky for loops.
* Learn to use dictionaries in a smarter way to keep track of your application's state.
* Save time writing custom subclasses by learning new data structures built right into Python.
* Use functional programming concepts in Python to make your code more compact
* Smartly organize your code and make it more readable with OOP
* Evolve into a seasoned Python developer with top Pythonic tips

Are There Any Course Requirements Or Prerequisites?

Some prior Python programming experience is assumed.

Who Are Your Target Students?

This course is aimed at Python developers who want to make their code clean and Pythonic to steal a march on the average coder. Developers who have moved to Python from a different language will also benefit from this course.

Course Content

  • 31 lectures
  • 02:37:53
  • The Course Overview
    00:02:27
  • Using List Comprehensions to Shorten for Loops
    00:07:10
  • Inserting if Statements Using Conditional List Comprehensions
    00:04:54
  • Operating on Lists of Lists with Nested List Comprehensions
    00:05:34
  • Simplify Your Collapsing Nested Lists
    00:04:26
  • List Slicing Tricks
    00:05:37
  • Never Get a KeyError Again with the defaultdict Data Structure
    00:07:15
  • Collapsing Nested Dictionaries to Simplify Your Code
    00:06:06
  • Mini Switch-case Statements with Dictionaries
    00:05:10
  • Merging Two Dictionaries with Just One line of Code
    00:04:03
  • Creating a Dictionary with List Comprehension in Python
    00:03:20
  • Counting Occurrences of Items Quickly with Counter
    00:05:03
  • Creating Stacks or Queues with Deque Objects
    00:04:33
  • Grouping Related Values with Tuples and Sequences
    00:04:52
  • Gathering Unique Sets of Values with Sets and Frozensets
    00:04:15
  • Powering Up Your Dictionaries with Ordered Dictionaries
    00:04:33
  • New Ways Of Calling Functions with Arguments and kwargs
    00:07:23
  • One Line Functions with Lambdas
    00:05:32
  • Segmenting Your Code with Functions within Functions
    00:04:48
  • Creating Dynamic Functions by Returning Functions
    00:04:49
  • Power Up Your Functions by Wrapping Them With Decorators
    00:04:40
  • Copying and Cloning Objects the Right Way
    00:07:20
  • Mini-Classes of Python- namedtuples
    00:04:39
  • Creating Smart Values with Static Methods and Properties
    00:05:43
  • Comparing Two Different Objects
    00:04:20
  • Do Real OOP by Implementing Abstract Base Classes in Python
    00:04:17
  • Enumerating the Indices of Your Loops with No Extra Lines
    00:05:50
  • Underscore Useless Variables to Make Your Code Easier to Look at
    00:06:02
  • Uncommon úfor..else ù Loop to End Your Iteration
    00:03:29
  • Pretty Printing Any Python Data Structure
    00:04:39
  • Managing Your Dynamic Resources Carefully with Context Managers
    00:05:04
Image

Packt Publication

  • 4.4 (21)
  • 7 Reviews
  • 21 Students
  • 935 Courses