¡@

Home 

python Programming Glossary: maptest

How to Use python map and other functional tools

http://stackoverflow.com/questions/672172/how-to-use-python-map-and-other-functional-tools

The following code foos 1.0 2.0 3.0 4.0 5.0 bars 1 2 3 def maptest foo bar print foo bar map maptest foos bars produces 1.0 1 2.0.. 4.0 5.0 bars 1 2 3 def maptest foo bar print foo bar map maptest foos bars produces 1.0 1 2.0 2 3.0 3 4.0 None 5.0 None Q. Is.. tools. Is it just a case of adding an if statement to maptest or apply another filter map to bars internally within maptest..