Python Program for Convert characters of a string to opposite case
View Discussion
Improve Article
Save Article
Like Article
View Discussion
Improve Article
Save Article
Like Article
Given a string, convert the characters of the string into opposite case,i.e. if a character is lower case then convert it into upper case and vice-versa. Examples: Input : geeksForgEeks
Output : GEEKSfORGeEKS
Input : hello every one
Output : HELLO EVERY ONEASCII values of alphabets: A – Z = 65 to 90, a – z = 97 to 122 Steps: Take one string of any length and calculate its…