+ 1

Swap challenge

You are given a string input,length 1<= n <= 10000, and you need to reverse each letter type for example: input: Hello output: hELLO input: 1He3llo4 output:1hE3LLO4 Any languages welcome I will pin the first to do it in the least code(I've done it in one line, Python) and I will post my code after someone does it(or gets close to it) Edit: Someone has done it, pinned his/her answer, now lets see who does it it the most complicated code https://code.sololearn.com/cnZaLZS1KfN5/?ref=app

5th Jan 2018, 2:25 PM
Andrei Cereanu
Andrei Cereanu - avatar
1 Resposta
0
print( input().swapcase() )
5th Jan 2018, 3:37 PM
Sebastián Zapata
Sebastián Zapata - avatar