GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing syntaxdb.com — Map in Python - SyntaxDB - Python Syntax Reference
LanguageVersion: 3.4.3Categories
FunctionsMap in PythonMap is a first class function used to run a function on an entire sequence. SyntaxNotesIn Python 2, the map function returns a list by default. In Python 3, the map function returns an iterator, which must be wrapped into a list if that's the desired result. Maps are most often used with lambdas. Example
|
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |