Python for Beginners
Topics for this course
Introduction to Python
When working in any new language, especially one with as vibrant a community as Python, it's important to follow the general practices most developers follow. We're going to chat a little bit about formatting and introduce the concept of linting. We'll also explore PEP-8, and why you should be familiar with its guidelines.
Introduction to Python00:00:00
Formatting and Linting
Formatting and Linting00:00:00
Demo: Formatting and Linting00:00:00
Lambdas in Python
Python allows you great flexibility when choosing your programming paradigm - procedural, functional and object oriented are all supported. The core of object-oriented programming is classes. We'll explore how to create classes, constructors, methods and properties in Python.
Classes in Python00:00:00
Inheritance in Python
Inheritance allows you to create specialized types of classes and objects, and share behavior across instances. We'll explore how Python supports inheritance, and how you can override functionality, including from the base object.
Mixins (Multiple inheritance)
Multiple inheritance is a bit of a controversial topic. While we won't take sides on this debate, we will explore how Python supports multiple inheritance. We'll discuss a common scenario you'll come across when using some popular frameworks.
Mixins (Multiple inheritance) in Python00:00:00
Managing the file system
You will frequently find yourself needing to work with local storage to locate files and navigate the folder hierarchy. We're going to explore how to work with files and folders.
Managing the file system in Python00:00:00
Demo: Managing the file system00:00:00
Working with files
File I/O is one of the oldest ways of managing data, and still useful in today's world. Let's see how to read and write information into files.
Working with files in Python00:00:00
Demo: Working with files00:00:00
CleanUp With with
When working with external resources, such as files, it's important to close the handle as soon as you're done using the resource. Unfortunately, it can be pretty easy to forget to properly close off the handle when you're done using it. Fortunately, Python includes a cool keyword called with to help manage external resources.
Using with to automatically close resources00:00:00
Demo: Using with00:00:00
Long running operations, such as making REST calls, impact an application's performance. There are many strategies for allowing execution to continue while waiting for an operation to complete in the background. We'll explore how promises and async/await work in Python.