Iteration Classes
itertools.starmap()
Call the function with each input item unpacked as positional arguments.
Formal Syntax & Structure
python syntaxpython
itertools.starmap(function, iterable, /)Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| function | callable | Callable applied by the operation. |
| iterable | iterable | Input values, consumed as needed. |
Return Value
iterator
The iterator result described above.
Working Example
Example Snippetpython
import itertoolsprint(list(itertools.starmap(pow,[(2,3),(3,2)])))