I understand the programmer's bitter, cherish programmer!!!!!!!!!!
Over a string of caps
[problem description]
The input string, capital letters converted to lower case letters, lower case letters converted to uppercase,
[input format]
The first line contains an integer n, said given the number of rows, the next n lines, each line contains a string, the string is composed of case letters, contains no Spaces or other characters,
Output format []
Output string for the input string case conversion


CodePudding user response:
Outo=input ()S=""
For I in outo:
If i.i slower () :
S +=i.u pper ()
Elif i.i supper () :
S +=i.l power ()
The else: s +=I
print(s)
CodePudding user response:
S="[email protected]"The import re
Print (re. Match (" \ w + @ \ w + \. \ w + ", s))
CodePudding user response:
