Ver Mensaje Individual
  #1 (permalink)  
Antiguo 03/02/2013, 14:37
BiChOmAlO_TGN
 
Fecha de Ingreso: julio-2003
Mensajes: 243
Antigüedad: 20 años, 9 meses
Puntos: 11
minusculas yPasar las mayúsculas de un string a viceversa

Hola!!

Que manera se os ocurre de hacer este ejercicio a mi se me ocurre solo una forma y es un código larguísimo y poco eficiente para que lo hay que hace, seguro hay alguna forma muy corta de hacerlo.


Write the function changeCase(word) that changes the case of all the letters in a word and returns the new word.

Examples

>>> changeCase('aPPle')
"AppLE"
>>> changeCase('BaNaNa')
'bAnAnA'



Saludos