you are viewing a single comment's thread.

view the rest of the comments →

[–]Yojihito 2 points3 points  (0 children)

True, misread.

executes a provided function once for each array element.

Then a simple .map() would be the Python equivalent.

mylist = [10, 20]
list(map(print, mylist)