commited all contents created by participants

This commit is contained in:
Bachir Soussi Chiadmi
2017-12-21 18:12:40 +01:00
parent cefd1c2ad0
commit b936b1e616
2137 changed files with 1076319 additions and 730 deletions
@@ -0,0 +1,18 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#Ask to write a sentence
sentence = "Les gouvernements suspectent la littérature parce qu'elle est une force qui leur échappe"
# print sentence
print("phrase originale:", sentence)
# Split sentence into words
words = sentence.lower().split()
print(words)
# ordre alphabétique
words.sort()
print(words)
# print sorted wordlist as string
print("phrase alphabétique:", " ".join(words).capitalize()+'.')