Improve your Python knowledge and skills

1. Use Python 3

2. Check for a minimum required Python version


From forcing keyword arguments to anonymous functions

1. Forced Keyword Arguments

  • You’re not forced into a particular order in which you supply your arguments. The name matters — not the position.
  • Keyword arguments provide clarity. Without looking up the function itself, you can often guess what the argument is used for by looking at the names.


Using geological data to explain the basics of OOP

Photo by lucas wesney on Unsplash

What is Object-Oriented Programming?

  • One jeep has 4 doors, 4 wheels, and green color
  • One motorcycle has no door, 2 wheels, and white color
  • One minibus has 6 doors, 4 wheels, and red color


With virtual environments, you can isolate your software and avoid version conflicts

Photo by Ryan Loughlin on Unsplash

Why You Need Virtual Environments

Preventing version conflicts


There are better ways to manage your packages and virtual environments than using pip and virtualenv

Photo by Alvaro Reyes on Unsplash.

Why pipenv?

  • You no longer need to use pip and virtualenv separately. Instead, you have one tool that does it all — and more!
  • pipenv separates your top-level dependencies from the last tested combination (e.g., the output of pip freeze). This makes dependency management more user-friendly for you as a developer.
  • pipenv encourages…


Everything you ever need to know about Python dictionaries

Old books
Old books
Photo by Syd Wachs on Unsplash.

Creating a Dictionary

>>> phone_nrs = { 'Jack': '070-02222748', 'Pete': '010-2488634' }
>>> an_empty_dict = { }
>>> phone_nrs['Jack']
'070-02222748'


If you’re stuck at home, now is the time to polish your skills

Image by author

1. Create a game

Pygame


6 tips to keep your body and mind healthy during this pandemic

Photo by Nubelson Fernandes on Unsplash

1. Get Enough Quality Sleep


YAML is easy to write for humans and easy to read by computers

Why use YAML with Python?


Using the subprocess library the right (and safe) way

Image by author
  • Learn the basics about processes and sub-processes
  • Use the Python subprocess module to safely execute external commands
  • Capture the command’s output
  • Feed a command with input from standard in
  • Look into running shell commands
  • Learn about critical security considerations when running external commands

1. Processes and subprocesses

Python Land

Start learning Python — companion to https://python.land

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store