Python tutorials

Quiz: Tapping Into the Zen of Python

Interactive Quiz ⋅ 8 QuestionsBy Joseph Peart Share In this quiz, you’ll test your understanding of Tapping Into the Zen of Python. By working through this quiz, you’ll revisit the origins of the poem, the meaning of several aphorisms, and the inside jokes hidden throughout. The questions explore how the principles apply in practice and when it’s okay to bend the rules in the name of practicality. The quiz contains 8 questions and there is no time limit. You’ll get […]

Read more

Quiz: Absolute vs Relative Imports in Python

Interactive Quiz ⋅ 7 QuestionsBy Joseph Peart Share In this quiz, you’ll test your understanding of Absolute vs Relative Imports in Python. By working through this quiz, you’ll revisit how Python’s import system resolves modules, the differences between absolute and relative imports, and the PEP 8 conventions for styling import statements. The quiz contains 7 questions and there is no time limit. You’ll get 1 point for each correct answer. At the end of the quiz, you’ll receive a total […]

Read more

Tapping Into the Zen of Python

The Zen of Python is a collection of 19 aphorisms that capture the guiding principles behind Python’s design. You can display them anytime by running import this in a Python REPL. Tim Peters wrote them in 1999 as a joke, but they became an iconic part of Python culture that was even formalized as PEP 20. By the end of this video course, you’ll understand: The Zen of Python is a humorous poem of 19 aphorisms describing Python’s design philosophy […]

Read more

Python Built-in Functions: A Complete Guide

Python’s built-in functions are predefined functions you can use anywhere in your code without any imports. They handle common tasks across math, data type creation, iterable processing, and input and output. Knowing which ones to reach for makes your code shorter and more Pythonic. To get the most out of this tutorial, you’ll need to be familiar with Python programming, including topics like working with built-in data types, functions, classes, decorators, scopes, and the import system. Built-in Functions in Python […]

Read more

Quiz: Python’s Array: Working With Numeric Data Efficiently

Interactive Quiz ⋅ 12 QuestionsBy Joseph Peart Share In this quiz, you’ll test your understanding of Python’s Array: Working With Numeric Data Efficiently. By working through this quiz, you’ll revisit the differences between Python’s array module and the built-in list, the meaning of type codes, how to create and manipulate arrays as mutable sequences, and the performance trade-offs of using a low-level numeric container. The quiz contains 12 questions and there is no time limit. You’ll get 1 point for […]

Read more

Quiz: Python Metaclasses

Interactive Quiz ⋅ 8 QuestionsBy Joseph Peart Share In this quiz, you’ll test your understanding of Python Metaclasses. Metaclasses sit behind every class you write in Python, and they’re one of the language’s deeper object-oriented concepts. By working through this quiz, you’ll revisit how classes are themselves objects, how type creates them, and how a custom metaclass lets you customize class creation. You’ll also reflect on when a custom metaclass is actually the right tool and when a simpler technique […]

Read more

Quiz: Cursor vs Windsurf: Which AI Code Editor Is Best for Python?

Interactive Quiz ⋅ 10 QuestionsBy Joseph Peart Share In this quiz, you’ll test your understanding of Cursor vs Windsurf: Which AI Code Editor Is Best for Python? By working through these questions, you’ll revisit how the two editors differ across code completion, agentic multi-file editing, and debugging. You’ll also reconnect with the audit points worth applying whenever an AI agent writes Python on your behalf. The quiz contains 10 questions and there is no time limit. You’ll get 1 point […]

Read more

Quiz: Cursor vs Windsurf: Which AI Code Editor Is Best for Python?

Interactive Quiz ⋅ 10 QuestionsBy Joseph Peart Share In this quiz, you’ll test your understanding of Cursor vs Windsurf: Which AI Code Editor Is Best for Python? By working through these questions, you’ll revisit how the two editors differ across code completion, agentic multi-file editing, and debugging. You’ll also reconnect with the audit points worth applying whenever an AI agent writes Python on your behalf. The quiz contains 10 questions and there is no time limit. You’ll get 1 point […]

Read more

How to Use OpenCode for AI-Assisted Python Coding

OpenCode is an open-source AI coding agent that runs in your terminal and lets you analyze and refactor a Python project through conversational commands. In this guide, you’ll install it on your system, set it up with a free Google Gemini API key, and learn the basics of how to use it in your daily programming work. Here’s what OpenCode’s main interface looks like: OpenCode’s Initial Screen OpenCode works as a conversational assistant you explicitly direct. Ask it to   […]

Read more

Quiz: The LEGB Rule & Understanding Python Scope

Interactive Quiz ⋅ 8 QuestionsBy Joseph Peart Share In this quiz, you’ll test your understanding of The LEGB Rule & Understanding Python Scope. By working through this quiz, you’ll revisit how Python resolves names using the LEGB rule, what the local, enclosing, global, and built-in scopes look like in practice, and how the global and nonlocal statements let you reach across scope boundaries. The quiz contains 8 questions and there is no time limit. You’ll get 1 point for each […]

Read more
1 3 4 5 6 7 226