Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. for line in mLista:
  2. palabras = line.rstrip().split()
  3. for word in palabras:
  4. if not word in diccionario:
  5. diccionario[word] = contador
  6. contador += 1
  7. break
  8.  
  9. {'miCoche1': 0, 'miCoche2': 1, 'miCoche3': 2, 'miCoche4': 3, 'miCoche5': 4, 'miCoche6': 5}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement