Quiz: Inheritance and Composition: A Python OOP Guide

Interactive Quiz ⋅ 7 QuestionsBy Martin Breuss In this quiz, you’ll test your understanding of Inheritance and Composition in Python. By working through this quiz, you’ll revisit how to use inheritance and composition in Python, model class hierarchies, and use multiple inheritance. 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 score. The maximum score is 100%. Good luck! « […]

Read more

Quiz: Get Started With Django: Build a Portfolio App

Interactive Quiz ⋅ 10 QuestionsBy Martin Breuss In this quiz, you’ll test your understanding of Django. By working through this quiz, you’ll revisit the steps you need to get started with Django. You’ll touch on topics that will help you create a fully functioning web application and revisit some of the most important features of Django. You’ll also investigate the architecture of a Django site, remember how to set up a new Django project with multiple apps, build models and […]

Read more

Quiz: A Practical Introduction to Web Scraping in Python

Interactive Quiz ⋅ 9 QuestionsBy Martin Breuss In this quiz, you’ll test your understanding of Web Scraping in Python. By working through this quiz, you’ll revisit how to parse website data using string methods and regular expressions, how to parse website data using an HTML parser, and how to interact with forms and other website components. The quiz contains 9 questions and there is no time limit. You’ll get 1 point for each correct answer. At the end of the […]

Read more

Quiz: Build Command-Line Interfaces With Python’s argparse

Interactive Quiz ⋅ 17 QuestionsBy Martin Breuss In this quiz, you’ll test your understanding of Creating Command-line Interfaces in Python with argparse. Command-line apps may not be common in the general user’s space, but they’re present in development, data science, systems administration, and many other operations. Every command-line app needs a user-friendly command-line interface (CLI) so that you can interact with the app itself. In Python, you can create full-featured CLIs with the argparse module from the standard library. The […]

Read more

Quiz: What’s Lazy Evaluation in Python?

Interactive Quiz ⋅ 7 QuestionsBy Bartosz Zaczyński Lazy evaluation is a programming concept where the evaluation of an expression is deferred until its value is actually needed. This can lead to performance enhancements by avoiding unnecessary calculations, and it can also allow for the creation of potentially infinite data structures. As you embark on this quiz, you’ll test your knowledge of lazy evaluation in Python and learn how to apply this concept to write cleaner and more efficient code. The […]

Read more

Quiz: Format Floats Within F-Strings

Interactive Quiz ⋅ 6 QuestionsBy Bartosz Zaczyński In this quiz, you’ll test your understanding of How to Format Floats Within F-Strings in Python. You’ll often need to format and round a Python float to display the results of your calculations neatly within strings. While there are several ways to format numbers in Python, formatted string literals or f-strings are usually the most frequent choice in modern Python programs. Knowing how to use f-strings effectively can make your code more readable […]

Read more

Quiz: Write Pythonic and Clean Code With namedtuple

Interactive Quiz ⋅ 11 QuestionsBy Martin Breuss In this quiz, you’ll test your understanding of Python’s namedtuple(). By working through this quiz, you’ll revisit how to create namedtuple classes, identify and take advantage of the cool features of namedtuple, use namedtuple instances to write Pythonic code, and decide when to use a namedtuple over a similar data structure. The quiz contains 11 questions and there is no time limit. You’ll get 1 point for each correct answer. At the end […]

Read more

Quiz: Python’s unittest: Writing Unit Tests for Your Code

Interactive Quiz ⋅ 12 QuestionsBy Leodanis Pozo Ramos In this quiz, you’ll test your understanding of testing your Python code with the unittest framework. Testing in Python is a huge topic and can come with a lot of complexity, but it doesn’t need to be hard. You can create simple tests for your application in a few easy steps and then build on them from there. With this quiz, you can check your understanding of testing with Python’s unittest framework. […]

Read more

Quiz: Python Sequences: A Comprehensive Guide

Interactive Quiz ⋅ 12 QuestionsBy Martin Breuss In this quiz, you’ll test your understanding of Python sequences. By working through this quiz, you’ll revisit the basic characteristics of a sequence, operations common to most sequences, special methods associated with sequences, and how to create user-defined mutable and immutable sequences. The quiz contains 12 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 […]

Read more

Quiz: What Is the __pycache__ Folder in Python?

Interactive Quiz ⋅ 13 QuestionsBy Bartosz Zaczyński As your Python project grows, you typically organize your code in modules and packages for easier maintenance and reusability. When you do that, you’ll likely notice the sudden emergence of a __pycache__ folder alongside your original files, popping up in various locations unexpectedly. The quiz contains 13 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
1 46 47 48 49 50 907