commited all contents created by participants
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
|
||||
|
||||
# Write sentence as string
|
||||
sentence = "Je vois La Vie en rose... Tu vois Le Ciel en vert!"
|
||||
# Print sentence
|
||||
print("phrase originale:", sentence)
|
||||
|
||||
new_letter = []
|
||||
|
||||
words = sentence.split()
|
||||
|
||||
# for each word
|
||||
for word in words:
|
||||
# iterate over letters of word
|
||||
for letter in word:
|
||||
new_letter.append(letter)
|
||||
|
||||
#print(new_letter)
|
||||
print("phrase sans espaces:", "".join(new_letter))
|
||||
Reference in New Issue
Block a user