The Basics of Python Classes and Objects

Object-oriented programming (OOP), which is a programming paradigm that groups code and the data it uses together, is a key feature in Python. The topic of OOP concepts and techniques alone can be covered by a full course in its own right. Since this course is more focused on Python features, this lesson will only cover the basics of how OOP is done in Python, specifically focusing on Python classes and objects.
Read MoreThe Basics of Python Classes and Objects

The Python Walrus Operator

The Python walrus operator := assigns a value to a variable. But unlike assignment operator =, it also returns the assigned value. This extra feature makes it into an expression, which is a construct that produces a value. It allows the walrus operator to be used in contexts where an assignment and a value are both needed, such as within a conditional statement, loops and comprehensions.
Read MoreThe Python Walrus Operator