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

Created By: Colibri Ltd
15.87 9.52

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 -

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
  • Using List Comprehensions to Shorten for Loops
  • Inserting if Statements Using Conditional List Comprehensions
  • Operating on Lists of Lists with Nested List Comprehensions
  • Simplify Your Collapsing Nested Lists
  • List Slicing Tricks
  • Never Get a KeyError Again with the defaultdict Data Structure
  • Collapsing Nested Dictionaries to Simplify Your Code
  • Mini Switch-case Statements with Dictionaries
  • Merging Two Dictionaries with Just One line of Code
  • Creating a Dictionary with List Comprehension in Python
  • Counting Occurrences of Items Quickly with Counter
  • Creating Stacks or Queues with Deque Objects
  • Grouping Related Values with Tuples and Sequences
  • Gathering Unique Sets of Values with Sets and Frozensets
  • Powering Up Your Dictionaries with Ordered Dictionaries
  • New Ways Of Calling Functions with Arguments and kwargs
  • One Line Functions with Lambdas
  • Segmenting Your Code with Functions within Functions
  • Creating Dynamic Functions by Returning Functions
  • Power Up Your Functions by Wrapping Them With Decorators
  • Copying and Cloning Objects the Right Way
  • Mini-Classes of Python- namedtuples
  • Creating Smart Values with Static Methods and Properties
  • Comparing Two Different Objects
  • Do Real OOP by Implementing Abstract Base Classes in Python
  • Enumerating the Indices of Your Loops with No Extra Lines
  • Underscore Useless Variables to Make Your Code Easier to Look at
  • Uncommon úfor..else ù Loop to End Your Iteration
  • Pretty Printing Any Python Data Structure
  • Managing Your Dynamic Resources Carefully with Context Managers

Packt Publication

  • 4.48 (35)
  • 13 Reviews
  • 35 Students
  • 935 Courses