123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- prefixe1 = "MONO-"
- prefixe2 = "UNI-"
- prefixe3 = "ANTI-"
- prefixe4 = "SUB-"
- prefixes = [prefixe1, prefixe2, prefixe3, prefixe4]
- print (prefixes)
- phrase = "And that which spites me more than all these wants- He does it under name of perfect love"
- nouvelle_phrase = []
- mots = phrase.split()
- for mot in mots:
- nouveau_mot= prefixe1+mot
-
- nouvelle_phrase.append(nouveau_mot)
|