Python tutorials

Quiz: NumPy Practical Examples: Useful Techniques

Interactive Quiz ⋅ 10 QuestionsBy Ian Eyre Share In this quiz, you’ll test your understanding of the techniques covered in the tutorial NumPy Practical Examples: Useful Techniques. By working through the questions, you’ll review your understanding of NumPy arrays and also expand on what you learned in the tutorial. You’ll need to do some research outside of the tutorial to answer all the questions. Embrace this challenge and let it take you on a learning journey. The quiz contains 10 […]

Read more

Quiz: Interacting With Python

Interactive Quiz ⋅ 8 QuestionsBy Martin Breuss Share In this quiz, you’ll test your understanding of the different ways you can interact with Python. By working through this quiz, you’ll revisit key concepts related to Python interaction in interactive mode using the Read-Eval-Print Loop (REPL), through Python script files, and within Integrated Development Environments (IDEs) and code editors. You’ll also test your knowledge of some other options that may be useful, such as Jupyter Notebooks. The quiz contains 8 questions […]

Read more

Quiz: Expression vs Statement in Python: What’s the Difference?

Interactive Quiz ⋅ 6 QuestionsBy Bartosz Zaczyński Share In this quiz, you’ll test your understanding of Expression vs Statement in Python: What’s the Difference? By working through this quiz, you’ll revisit the key differences between expressions and statements in Python, and how to use them effectively in your code. The quiz contains 6 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: Python Dictionary Comprehensions: How and When to Use Them

Interactive Quiz ⋅ 7 QuestionsBy Leodanis Pozo Ramos Share In this quiz, you’ll test your understanding of Python Dictionary Comprehensions: How and When to Use Them. Understanding dictionary comprehensions is crucial for you as a Python developer because they provide a Pythonic tool for dictionary manipulation and can be a valuable addition to your programming toolkit. 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 […]

Read more

NumPy Practical Examples: Useful Techniques

The NumPy library is a Python library used for scientific computing. It provides you with a multidimensional array object for storing and analyzing data in a wide variety of ways. In this tutorial, you’ll see examples of some features NumPy provides that aren’t always highlighted in other tutorials. You’ll also get the chance to practice your new skills with various exercises. If you’re new to NumPy, it’s a good idea to familiarize yourself with the basics of data science in […]

Read more

Working With TOML and Python

TOML—Tom’s Obvious Minimal Language—is a reasonably new configuration file format that the Python community has embraced over the last couple of years. TOML plays an essential part in the Python ecosystem. Many of your favorite tools rely on TOML for configuration, and you’ll use pyproject.toml when you build and distribute your own packages. In this video course, you’ll learn more about TOML and how you can use it. In particular, you’ll: Learn and understand the syntax of TOML Use tomli […]

Read more

Interacting With Python

There are multiple ways of interacting with Python, and each can be useful for different scenarios. You can quickly explore functionality in Python’s interactive mode using the built-in Read-Eval-Print Loop (REPL), or you can write larger applications to a script file using an editor or Integrated Development Environment (IDE). In this tutorial, you’ll learn how to: Use Python interactively by typing code directly into the interpreter Execute code contained in a script file from the command line Work within a […]

Read more

Using the Python zip() Function for Parallel Iteration

Watch Now This tutorial has a related video course created by the Real Python team. Watch it together with the written tutorial to deepen your understanding: Parallel Iteration With Python’s zip() Function Python’s zip() function combines elements from multiple iterables. Calling zip() generates an iterator that yields tuples, each containing elements from the input iterables. This function is essential for tasks like parallel iteration and dictionary creation, offering an efficient way to handle multiple sequences in Python programming. By the […]

Read more

Quiz: Namespaces and Scope in Python

Interactive Quiz ⋅ 11 QuestionsBy Martin Breuss Share In this quiz, you’ll test your understanding of Python Namespaces and Scope. You’ll revisit how Python organizes symbolic names and objects in namespaces, when Python creates a new namespace, how namespaces are implemented, and how variable scope determines symbolic name visibility. The quiz contains 11 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: Basic Input and Output in Python

Interactive Quiz ⋅ 5 QuestionsBy Martin Breuss Share In this quiz, you’ll test your understanding of how to use Python’s built-in functions input() and print() for basic input and output operations. You’ll also revisit how to use readline to improve the user experience when collecting input, and how to format output using the sep and end keyword arguments of print(). The quiz contains 5 questions and there is no time limit. You’ll get 1 point for each correct answer. At […]

Read more
1 2 3 181