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 — Filter in Python - SyntaxDB - Python Syntax Reference
LanguageVersion: 3.4.3Categories
FunctionsFilter in PythonFilter is a built-in first class function that performs a function on a sequence, and removes all sequence elements where the function returned 'false'. SyntaxNotesIn Python 2, the filter function returns a list by default. In Python 3, the filter function returns an iterator, which must be wrapped into a list if that's the desired result. Like all first class functions, filters 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. |