12345678910111213141516171819202122232425262728293031 |
- #!/usr/bin/python
- # this is a shebang: https://en.wikipedia.org/wiki/Shebang_%28Unix%29
- prefixe1 = "MONO-"
- prefixe2 = "UNI-"
- prefixe3 = "ANTI-"
- prefixe4 = "SUB-"
- print (prefixe1)
- #intégrer une sentence
- #myfile = open ("which_spites.txt", 'r')
- #sentence = myfile.read()
- #myfile.close()
- phrase = "And that which spites me more than all these wants- He does it under name of perfect love"
- print("1ere réplique:", phrase)
- #définir la liste de mot correspondante
- mots = phrase.split()
- print(mots)
- for mot in mots:
- print(prefixe1+mot)
- #séparer chaque mot
- #choix d'un prefixe parmis le stack de prefixe
- #indiquer au prefixe qu'il precede le mot
|