frase sin espacio
Python
code posted
by
Dragón
created at 30 May 09:23
Edit
|
Back
1
2
3
4
5
6
7
8
9
10 |
frase = "esta es una frase"
nueva_frase =""
i=0
while i < len(frase):
if frase[i] !=" ":
nueva_frase = nueva_frase + frase[i]
i = i + 1
print nueva_frase |
176 Bytes in 2 ms with coderay