title: Creating a float in a list of objects
body: <p>I have a list of objects,</p>
  
  <pre><code>l = (('a1', 1.96256684), ('b3', 1.36), ('e2', 0.5715))
  </code></pre>
  
  <p>I want to be able to format the numbers to a certain number of decimal places (4) in order to get an output like</p>
  
  <pre><code>a1 1.9626 b3 1.3600 e3 0.5715
  </code></pre>
  
  <p>I tried the method described <a href="https://stackoverflow.com/a/43197686">here</a> (using isalpha) but get the error</p>
  
  <pre><code>AttributeError: 'tuple' object has no attribute 'isalpha'
  </code></pre>
  
  <p>I'm wondering if it's because the alphabetic letters have numbers attached to them? But then I would think it would just return False instead of giving me an error. </p>
  
  <p>Thank you for any help or adivce</p>