In this Python Advanced Tutorial, I will talk about the asterisk (*) or star operator in Python. I will talk about the different use cases:
- Multiplication and power operations
- Creation of list / tuple / string with repeated elements
- Variable length arguments (*args and **kwargs)
- Keyword only arguments
- Unpacking container data types into function arguments
- Unpacking container into single and multiple elements
- Merging lists / dictionaries
~~~~~~~~~~~~~~ GREAT PLUGINS FOR YOUR CODE EDITOR ~~~~~~~~~~~~~~
🪁 Code faster with Kite: *
✅ Write cleaner code with Sourcery: *
📚 Get my... FREE NumPy Handbook:
📓 Notebooks available on Patreon:
Hide player controls
Hide resume playing