Three dots
Ellipsis is translated from English as an ellipsis, so an object is designated in two ways: Ellipsis and ...
It is used as a replacement for the pass keyword, in type annotations, and as an add-on. functionality for matrices.
In the type annotation, using ellipses, we indicate that there can be an unlimited number of objects of a certain type.
#library
#python
#Python_tricks
🆔 @Python4all_pro
Post #895
4.18K

- 👍 4
- ❤ 1