Default Secondary Prompt in Python interpreter
Ellipsis notation[…] is used as a default secondary prompt in Python interpreter which is seen during multi-line constructs
Example:
What is Three dots(…) or Ellipsis in Python3
Ellipsis is a Python Object. It has no Methods. It is a singleton Object i.e. , provides easy access to single instances.
Various Use Cases of Ellipsis (…):
- Default Secondary Prompt in Python interpreter.
- Accessing and slicing multidimensional Arrays/NumPy indexing.
- In type hinting.
- Used as Pass Statement inside Functions.