Please enable JavaScript.
Coggle requires JavaScript to display documents.
Built-in
Function - Coggle Diagram
Built-in
Function
reduce()
-
how to
work
In the next step the function will be applied on the previous result and the third element of the list
It continues like this until just one element is left and return this element as the result of reduce()
-
syntax: reduce(func, sequence)
filter()
filter out all the elements of an iterable, for which the function returns True.
syntax: filter(function,list)
-
map()
-
syntax: map(function, iterable,...)
take 2 or more arguments: a function, one or more iterables
-
enumerate()
returning a tuple in the form (count,element)
-
-
syntax: enumerate(list,start=3)
-
complex()
Syntax:
//Create 2+3j
complex(2,3)
returns a complex number with the value real + imag*1j or converts a string or number to a complex number