phrase .py 425 B

12345678910111213141516
  1. #!/usr/bin/python
  2. # this is a shebang: https://en.wikipedia.org/wiki/Shebang_%28Unix%29
  3. import random
  4. #print (prefixe1)
  5. #intégrer une sentence
  6. #myfile = open ("which_spites.txt", 'r')
  7. #sentence = myfile.read()
  8. #myfile.close()
  9. phrase = "And that which spites me more than all these wants- He does it under name of perfect love"
  10. print("1ere réplique:", phrase)
  11. mots = sentence.split(" ")
  12. print( "liste des mots:", mots )