title: Loop over list of strings and perform tasks (Introducing Python Exercises Chapter 2)
body: <p>where to ask if my code is clear and good.
  So I have three tasks to do:</p>
  
  <p><img src="https://i.stack.imgur.com/QklJY.png" alt="enter image description here"></p>
  
  <p>So I tried to loop through it and do all of them in a single loop.
  Hope to have some feedback, have a nice one.</p>
  
  <pre><code>names = ['mozzarella', 'cinderella', 'salmonella']
  for i in range(len(names)):
    for name in names:
      if name == 'cinderella':
          names[i] = name.capitalize()
          i += 1
      elif name == 'mozzarella':
          names[i] = name.upper()
          i += 1
      elif name == 'salmonella':
          names.remove(name)
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>['MOZZARELLA', 'Cinderella']
  </code></pre>