title: a for loop for a string that has vertices, edges and faces
body: <pre><code>complex = {1},{2},{3}, {1,2},{1,3},{2,3},{1,2,3} this is my string.
  </code></pre>
  
  <p>I want to create a loop that gives me saying ok this has</p>
  
  <pre><code>vertices = 3
  edges =3
  faces =1
  </code></pre>
  
  <p>I can do it for "particular" structure using CONDITIONAL STATEMENTS. But I want it to give  me no matter how many vertices edges and faces I input so that it will count properly. 
  My issue is the {} how can I deal with this. This has 2 loops right? Just can figure how to command.</p>
  
  <p>the code I have is the only thing I can do. Please help. I am new to python.</p>
  
  <pre><code>def nsimplex(vertices, edges, faces):
      sum = vertices + edges + faces
      if sum == 14:
           print('This is a Tetrahedron')
      elif sum == 25:
          print('This is a 4 simplex')
      else:
          print('this is a nsimplex')
  
      sentence = 'the sum of {} and {} and {} is {}.'.format(vertices, edges, faces, sum)
      print(sentence)
  
  
  def count():
      vertices = int(input("enter number of vertices: "))
      edges = int(input("enter number of edges: "))
      faces = int(input("enter number of faces: "))
      nsimplex(vertices, edges, faces)
  
  count()
  </code></pre>