{"id":26839,"date":"2022-03-31T02:17:55","date_gmt":"2022-03-30T20:47:55","guid":{"rendered":"https:\/\/python-programs.com\/?p=26839"},"modified":"2022-03-31T02:17:55","modified_gmt":"2022-03-30T20:47:55","slug":"python-program-to-show-scatter-in-terms-of-tuple","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-to-show-scatter-in-terms-of-tuple\/","title":{"rendered":"Python Program to Show Scatter in Terms of Tuple"},"content":{"rendered":"

Python functions that accept variable-length parameters. In many scenarios, depending on the needs, we will have to deal with a variable number of arguments.<\/p>\n

Variable-length Arguments<\/strong><\/p>\n

It is a feature that enables the function to accept any\u00a0number of parameters. Many built-in Python functions, such as max (), min (), sum (), and so on, take variable-length arguments.<\/p>\n

These functions can accept an unlimited number of parameters. In such circumstances, we use the symbol ‘*’ to indicate that the argument is of variable length.<\/p>\n

Any parameter that begins with the ‘*’ symbol is known as gather and signifies a variable-length argument.
\nThe antonym(opposite) of gather is scatter<\/strong>.
\nSo, if there is a function that accepts several inputs but not a tuple, the tuple is scattered and passed to individual elements.<\/p>\n

Program to Show Scatter in Terms of Tuple in Python<\/h2>\n

Approach:<\/strong><\/p>\n