Files
ola5doc/content/.stversions/emilie_aurat/sources/1~20171217-103148.py
T

33 lines
686 B
Python

#!/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:
nouveau_mot= prefixe1+mot
print(nouveau_mot)
#séparer chaque mot
#choix d'un prefixe parmis le stack de prefixe
#indiquer au prefixe qu'il precede le mot