#!/usr/bin/python # -*- coding: utf-8 -*- sentence="azerty uiop" words = sentence.split() print (words) for word in words: print(word.index(word))