position.py 152 B

12345678
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. sentence="azerty uiop"
  4. words = sentence.split()
  5. print (words)
  6. for word in words:
  7. print(word.index(word))