Samuel Vermeulen 4 weeks ago
parent
commit
f33cb0c9b2
  1. 8
      sans_espaces.py

8
sans_espaces.py

@ -0,0 +1,8 @@
texte = input()
caracteres = list(texte)
for loop in range(len(texte)):
if caracteres[loop] == " ":
caracteres[loop] = "_"
print("".join(caracteres))
Loading…
Cancel
Save