Python tutorials

Quiz: Strip Characters From a Python String

Interactive Quiz ⋅ 10 QuestionsBy Joseph Peart Share Brush up on how Python’s strip, lstrip, and rstrip string methods work. You’ll practice how to remove whitespace, specific characters, and use the right tool for trimming string ends. Try these questions to check your understanding of default stripping, custom character sets, and the difference between stripping characters and removing sequences. Need a refresher? See Strip Characters From a Python String. The quiz contains 10 questions and there is no time limit. […]

Read more

Strip Characters From a Python String

By default, Python’s .strip() method removes whitespace characters from both ends of a string. To remove different characters, you can pass a string as an argument that specifies a set of characters to remove. The .strip() method is useful for tasks like cleaning user input, standardizing filenames, and preparing data for storage. By the end of this video course, you’ll understand that: The .strip() method removes leading and trailing whitespace but doesn’t remove whitespace from the middle of a string. […]

Read more

Quiz: Get Started With FastAPI

Interactive Quiz ⋅ 5 QuestionsBy Philipp Acsany Share Brush up on core FastAPI concepts with this short quiz. You’ll revisit how to install FastAPI with extras, define API endpoints, and understand path and query parameters. See how FastAPI handles JSON responses and where to find the built-in API docs. Want to review first? Check out Get Started With FastAPI for a practical walkthrough of these features. The quiz contains 5 questions and there is no time limit. You’ll get 1 […]

Read more

Get Started With FastAPI

FastAPI is a web framework for building APIs with Python. It leverages standard Python type hints to provide automatic validation, serialization, and interactive documentation. When you’re deciding between Python web frameworks, FastAPI stands out for its speed, developer experience, and built-in features that reduce boilerplate code for API development: Use Case Pick FastAPI Pick Flask or Django You want to build an API-driven web app ✅ — You need a full-stack web framework — ✅ You value automatic API documentation […]

Read more

Quiz: What Can You Do With Python?

Interactive Quiz ⋅ 11 QuestionsBy Martin Breuss Share Sharpen your sense of where Python fits. You’ll revisit web frameworks, CLIs and TUIs, GUIs, data work, and robotics. Use hints when stuck, then read the explanations. For a quick big-picture refresher, watch What Can You Do With Python?. 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 maximum score […]

Read more

Quiz: Ways to Start Interacting With Python

Interactive Quiz ⋅ 6 QuestionsBy Martin Breuss Share Want to revisit different ways to run Python code interactively? In this quiz, you’ll review concepts such as using the REPL, executing scripts, and working within IDEs. Before starting, make sure you’ve gone through the Ways to Start Interacting With Python course to get the most from these questions. The quiz contains 6 questions and there is no time limit. You’ll get 1 point for each correct answer. At the end of […]

Read more

Quiz: Python 3.14 Preview: REPL Autocompletion and Highlighting

Interactive Quiz ⋅ 4 QuestionsBy Leodanis Pozo Ramos Share In this quiz, you’ll test your understanding of Python 3.14 Preview: REPL Autocompletion and Highlighting. With these skills, you’ll be able to take advantage of smarter autocompletion in import statements, real-time syntax highlighting, and even customize or disable the colors to fit your workflow. The quiz contains 4 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 […]

Read more

Python 3.14 Preview: REPL Autocompletion and Highlighting

Python 3.14 introduces improvements to its interactive shell (REPL), bringing a more modern, colorful, and user-friendly environment. The new features make the Python 3.14 REPL a powerful tool for experimentation. Whether you’re testing a quick idea, exploring a new library, or debugging a tricky snippet, the REPL gives you instant feedback—no files, no setup, just type and run. The default CPython REPL intentionally kept things minimal. It was fast, reliable, and available everywhere, but it lacked the richer, more ergonomic […]

Read more

Python Project Management With uv

The uv tool is a high-speed package and project manager for Python. It’s written in Rust and designed to streamline your workflow. It offers fast dependency installation and integrates various functionalities into a single tool. With uv, you can install and manage multiple Python versions, create virtual environments, efficiently handle project dependencies, reproduce working environments, and even build and publish a project. These capabilities make uv an all-in-one tool for Python project management. By the end of this video course, […]

Read more

Quiz: What Does -> Mean in Python Function Definitions?

Interactive Quiz ⋅ 8 QuestionsBy Philipp Acsany Share In this quiz, you will revisit how Python uses the arrow notation (->) in function signatures to provide return type hints. Practice identifying correct syntax, annotating containers, and understanding the role of tools like mypy. Brush up on key concepts, clarify where and how to use return type hints, and see practical examples in What Does -> Mean in Python Function Definitions?. The quiz contains 8 questions and there is no time […]

Read more
1 2 3 4 202