title: AttributeError: 'list' object has no attribute 'startswith'
body: <pre><code>cities = ["New York", "Shanghai", "Munich", "Tokyo", "Dubai", "Mexico City", "São Paulo", "Hyderabad"]
  
  for city_m in cities:
      if cities.startswith("M"):
          print("Cities that start with M:", cities)
      else:
          print("No cities start with M.")
  </code></pre>
  
  <h2>    print(cities)</h2>
  
  <p>AttributeError                            Traceback (most recent call last)
   in ()
        4 
        5 for city_m in cities:
  ----> 6     if cities.startswith("M"):
        7         print("Cities that start with M:", cities)
        8     else:</p>
  
  <p>AttributeError: 'list' object has no attribute 'startswith'</p>
  
  <p>I'm trying to list cities that start with "m", but I get the error in the title, and I don't understand it. Maybe I'm doing something wrong, and I appreciate any feedback on this issue. Thank you in advance.</p>