When Do You Use an Ellipsis in Python? Quiz
Interactive Quiz ⋅ 6 Questions
By Joseph Peart
In this quiz, you’ll test your understanding of When Do You Use an Ellipsis in Python?
By working through this quiz, you’ll revisit how ... relates to the Ellipsis object,
how to use three dots as a placeholder when you write stubs, what they mean in tuple
and Callable type hints, and how they shorten your NumPy slicing syntax.
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 maximum score is 100%. Good luck!
Related Resources
Tutorial
When Do You Use an Ellipsis in Python?
You may have seen three dots in Python scripts. Although this syntax may look odd, using an ellipsis is valid Python code. In this tutorial, you'll learn when Python's Ellipsis constant can come in handy for you.