Quiz: Python’s tuple Data Type: A Deep Dive With Examples

Interactive Quiz ⋅ 10 QuestionsBy Joseph Peart Share In this quiz, you’ll test your understanding of Python tuples. By working through this quiz, you’ll revisit various ways to interact with Python tuples. You’ll also practice recognizing common features and gotchas. The quiz contains 10 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 score. The maximum score is 100%. Good luck! Related Resources

Read more

Quiz: How to Install Python on Your System: A Guide

Interactive Quiz ⋅ 5 QuestionsBy Leodanis Pozo Ramos Share In this quiz, you’ll test your understanding of how to install Python. This quiz covers questions about how to check which version of Python is installed on your machine, and how you can install or update Python on various operating systems. The quiz contains 5 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 score. […]

Read more

Write Python Docstrings Effectively

Writing clear, consistent docstrings in Python helps others understand your code’s purpose, parameters, and outputs. In this video course, you’ll learn about best practices, standard formats, and common pitfalls to avoid, ensuring your documentation is accessible to users and tools alike. By the end of this video course, you’ll understand that: Docstrings are strings used to document your Python code and can be accessed at runtime. Python comments and docstrings have important differences. One-line and multiline docstrings are classifications of […]

Read more

Quiz: TinyDB: A Lightweight JSON Database for Small Projects

Interactive Quiz ⋅ 10 QuestionsBy Ian Eyre Share In this quiz, you’ll test your understanding of the TinyDB database library and what it has to offer, and you’ll revisit many of the concepts from the TinyDB: A Lightweight JSON Database for Small Projects tutorial. Remember that the official documentation is also a great reference. The quiz contains 10 questions and there is no time limit. You’ll get 1 point for each correct answer. At the end of the quiz, you’ll […]

Read more

TinyDB: A Lightweight JSON Database for Small Projects

TinyDB is a Python implementation of a NoSQL, document-oriented database. Unlike a traditional relational database, which stores records across multiple linked tables, a document-oriented database stores its information as separate documents in a key-value structure. The keys are similar to the field headings, or attributes, in a relational database table, while the values are similar to the table’s attribute values. TinyDB uses the familiar Python dictionary for its document structure and stores its documents in a JSON file. TinyDB is […]

Read more

Quiz: Python’s list Data Type: A Deep Dive With Examples

Interactive Quiz ⋅ 10 QuestionsBy Joseph Peart Share Get hands-on with Python lists in this quick quiz. You’ll revisit indexing and slicing, update items in place, and compare list methods. Along the way, you’ll look at reversing elements, using the list() constructor and the len() function, and distinguishing between shallow and deep copies. For a refresher, see the Real Python guide to Python lists. The quiz contains 10 questions and there is no time limit. You’ll get 1 point for […]

Read more

Quiz: Python’s pathlib Module: Taming the File System

Interactive Quiz ⋅ 9 QuestionsBy Joseph Peart Share In this quiz, you’ll revisit how to tame the file system with Python’s pathlib module. You’ll reinforce core pathlib concepts, including checking whether a path points to a file and instantiating Path objects. You’ll revisit joining paths with the / operator and .joinpath(), iterating over directory contents with .iterdir(), and renaming files on disk with .replace(). You’ll also check your knowledge of common file operations such as creating empty files with .touch(), […]

Read more

Quiz: What Exactly Is the Zen of Python?

Interactive Quiz ⋅ 8 QuestionsBy Joseph Peart Share In this quiz, you’ll test your understanding of The Zen of Python. By working through this quiz, you’ll revisit core aphorisms and learn how they guide readable, maintainable, and Pythonic code. The questions explore practical tradeoffs like breaking dense expressions into smaller parts, favoring clarity over cleverness, and making code behavior explicit. The quiz contains 8 questions and there is no time limit. You’ll get 1 point for each correct answer. At […]

Read more

What Exactly Is 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 tutorial, you’ll understand: The Zen of Python is a humorous poem of 19 aphorisms describing Python’s design philosophy Running […]

Read more
1 2 3 947