title: What is more efficient ? Using Map or For loop in python ?
body: <p>Assume that I am writing test code. Now there are two ways of doing the same thing, for the sake of good and efficient coding practice, I would like to know which one is better/smarter ? </p>
  
  <p>first example: </p>
  
  <pre><code>    for hardware_id in (someInterface.HardwareEnum):
        DummyFunction(hardware_id, some_parameter_enum)
  </code></pre>
  
  <p>Second Example:</p>
  
  <pre><code>    map(lambda hardware_id: DummyFunction(hardware_id, some_parameter_enum), someInterface.HardwareEnum)
  </code></pre>