converting capital letters to lowercase and viceversa in python

Solutions on MaxInterview for converting capital letters to lowercase and viceversa in python by the best coders in the world

showing results for - "converting capital letters to lowercase and viceversa in python"
Ilana
23 Jun 2018
1s=input()
2new_str=""
3for i in range (len(s)):
4    if s[i].isupper():
5        new_str+=s[i].lower()
6    elif s[i].islower():
7        new_str+=s[i].upper()
8    else:
9        new_str+=s[i]
10print(new_str)
11        
12        
queries leading to this page
return in capital or lowercase pythonhow to make capital letters lowercase in pythonconvert capital letter to small letter pythonconvert uppercase to lowercase in pythonconvert uppercase to lowercase pythonmake all caps pythonmake all caps small in pythonhow to convert a sentence swapped cases in pythonhow to convert small to capital pythonconvert all lower case to uppercase and viece versa in python functionhow to convert uppercase to lowercase in pythonhow to turn lowercase letters into uppercase letters pythonpython change lowercase to uppercaseconvert upper to lower and lower to upper in pythonpython function capital letters lower casepython string all capsstring to caps pythonconvert uppercase to lowercase and vice versa in pythonhow to vhange lowercase to uppercase pythonturn to small caps in pythonhow to switch upper lower case in pythonhow to convert upper case to lower in pythonhow to change case in pythonpython capital letter to smallconvert all letters to uppercase pythonmix str of upper and lowercase letters converter in pythonlowercase uppercase mix pythonin order to convert the text from uppercase to lowercase in pythonhow to convert the uppercase letters in the string to lowercase in python 3fuppercase to lowercase python codestring capitals or small pythonpython calculate the number of upper case letters and lower case lettershow to write a function that converts all lowercase to uppercase and all uppercase to lowercaseno of uppercase and lowercase letteers in pythonhow to change python from upper case to lower casehow to turn capital letters into lowercase of a word file in pythonhow to convert lowercase to uppercase and uppercase to lowercase in python at timeconvert decussate lowercase letters to uppercase letters in pythonconvert letter to capital in pythonchanging upper and lowercase case in pythonpython to convert upper case to lowerconverting a single letter to upper pythonhwo to caps letters in pythonswapping case in pythonpython capitalize making string lowerpython swap letter casehow to change uppercase letter to lowercase letter without using string pytonconvert all lower to uppercase pythonhow to replace capital letters to small in pythonchar from lower to upper case pythonturning uppercase letters to small and turning letters lowercase letters to uppercase in a string in pythonupper lower alphabet in pythonpython capitalized to lowerone lowercase letter one uppercase letter and a number pythoncapital to small letters pythonfind out number of uppercase and lower case characters in string using pythonpython how many letters are capital in straingpython reverse upper and lowercase of stringpython small capslower upper caps in python checksmall to caps in pythonhow to count uppercase and lowercase in pythonlowercase to uppercase and vice versa in pythonhow to swap a lowercase character to uppercase in pythonhow to convert capital letters to small letters vice versa in pyhtonpython function tyo swap the casesmake a string all caps pythonchange capital to lowercase pythoncapital letter to small letter pythonchange capital letters to lowercase pythonupper letter into lower letter vice versa of the given string pythonpython program to convert uppercase to lowercase and vice versa in a stringsmall to capital letter in pythonwrite a code to convert uppercase to lowercase and vice versa in a string pythonhow to compare a string with any capital letter or small letter pythonhow to seperate a string by capitals pythonconvert to small case in pythonhow to convert uppercase to lowercase and lower to upper in python stringpythom small letter to a capital letteris text is lowercase make it upper pythonhow to swap casehow to change lower case to upper case and upper case to lower case in pythonpython make lowercase upp and upper case lowerto upper and to lower individual cha in pythonchange upper case to lower pythonchange lower case letters to uppercase in pythonin python convert the smaller case letter in the uppercase letterchange case of character in string pythonhow to convert the uppercase letters in the string to lowercase in python 3f lowercase 28 29 capilaize 28 29 lower 28 29 tolower 28 29capital letter to small letter pythoconvert uppercase to lowercase pythonstring to all caps pythonpython string small capschanging uppercase to lowercase in pythonhow to change capital letters to lowercase in pythoncapital to small latter convert in python swap case pythonconvert all letters to upper case pythonhow to convert uppercase to lowercase and lowercase to uppercase in pythonhow to change uppercase letter to lowercase letter pythonfunction in python for uppercase or lowercase an entire stringhow to change lower to upper and vice versa at same time in pythonhow to swap cases in pythonswapping cases in pythonhow to convert a character from lowercase to uppercase in pythonreverse string and convert lower case to upper and upper case to lower pythonpython change case of a characterconverting lowercase to uppercase in pythonchange lower case to uppercase and uppercase to lowercase pythonhow to convert lowecase sentence into uppercase in pythonchange case function in pythonto convert lowercase to uppercase and vice versa in pythonchange the case in pythonpython program to calculate the number of uppercase letters and lowercase letters in a stringhow to upper case and lower case in pythonhow to convert small to capital in pythonhow to change small letter to capital in pythonswitch letter case pythonusing python to change capital into smallhow to convert uppercase to lowercase in python and vice versachange to caps pythonpython code to convert lowercase to uppercasehow to change uppercase to lowercase in pythonconvert lowercase to uppercase pythonconvert upper case to lower case pythonis uppercase lower than lower case in pythonupper case letter lower case letter pythonhow to convert lower to upper case in pythonprint lower case letter from capital letters pythonconvert string to all caps pythonconvert small letter to capital in pythonhow to make python read uppercase and lowercase letterscase swap pythoncaps to small in python and small to caps at a time in pythonall caps pythonconvert char to uppercase pythonhow to make python read uppercase and lowercase letters in defpython program to count uppercase and lowercase in a stringhow to make a string have upper case and lower case pythonhow to change lowercase to uppercase in pythonconvert lowercase to uppercase using pythonchange small letter to capital letter pythnofind upper and lower case letters pythonpython put string all in capsdoes capital letter and small letter same in pythonpython string to capshow make capitalized letters lowercase and lowercase letters uppercase pythoncaps to small in python and small to caps in pythonconvert lowercase to uppercase in python without using functioncapital letter to lowercase pythonpython convert capital letters to lowercasehow to convert uppercase to lowercase and lowercase to uppercase in same string in pythonpython how to change lowercase to uppercasechanging upper and lowercase in pythoncapital to small pythonconvert capital letter to small in pythoncapital letters a less than small in pythonuppercase lowercase and number symbol in pythonpython switch uppercasehow to convert uppercase to lowercase and vice versa in pythonwrite a python program to convert uppercase strings to togglecasechange uppercase to lowercase in pythoncreate space between small letter and capital letter in string pythonall character uppercase and lowercase pythonuppercase character read lowercase character in pythonconvert to caps string pythonchange lowercase to uppercase in pythonchar lower to upper pythonpython caps letter examplemake everything caps pythonstring lower and uppercase alphabet pythonif i write upperacse and lowercase letter how can i treat both of them as same in pythonpython swap caseone string can read uppercase and lowercase character pythonwrite a python program to convert lowercase character into uppercase and uppercase character into lowercasepython all character capschange lowercase string to uppercase in pythonupper to lower and lower to upper in pythonconverting capital letter to small letter in pythonlowercase to uppercaseof character in pythonpython upper lower and sentence examplecount uppercase and lowercase in pythonchange the case of string in pythonpython program switch uppercase and vice versapython to all capspython upper to lower and lower to upperconvers caps to small string pythonconvert sentence to caps pythonpython chr capital and lowerhow to convert a capital letter to a lowercase letter in pythonconvert lowercase to uppercase using function in pythonconvert capital to small in pythonsmall letters to capital letters code in pythonconvert all lowercase letters to uppercase letters and vice versa in pythoncase change in pythonpython code for taking lowercase uppercase and numbers and etc in the pythonhow to turn the small letters of string to capital in pythonhow to convert capital letters to small letters in pythontoggle upper to lowercase pythonhow yo change letters to capital pythonconvert lower to upper and upper to lower in pythonswap caseconvert upper letter to lower and lower to upper letter in python without loophow to convert upper case letter to lower in pythonpython convert text to capshow to convert from uppercase to lowercase in pythonhow to change lower case to upper pythonhow to turn uppercase into lowercase in pythonpython function name with capital lower case letterspython program to convert lowercase to uppercase and vice versachar val in python for lowercase and uppercasehow to turn the capital letters in small letter and small letter into capital letter pythonpython program to print uppercase to lowercase and lower case to upper casechange upper to lowercase and lower to uppercase pythonhow to make a strng all caps in pythonconverting uppercase to lowercase in pythonfunction to convert uppercase to lowercase in pythonhow to transform capital letters in lowecase in pythonhow to change a lowercase letter to uppercase in python encodingpython turn all capscheck caps status of letter pythonpython to capshow to change upper and lower case pythonconverting upper case to lower case in string pythonconvert lowercase to uppercase and upper case in lower case in pythonpython all caps stringpython capital letters lower casewrite a python program to chang upper to lower case strings and vice versa change upper to lower and lower to upper in pythonhow to convert all caps string in pythonwhat to add to change from uppercase to lowercase in pythonpython make a string all capshow to turn capital letters into lowercase in pythonswapcase syntax in pythonpython print all lowercase letters to uppercaseconvert all lowercase letters to uppercase letters in pythonswap case in pythonhow to match capital letter and small in pythonchange lowercase char to upper in pythonconvert all lower case to uppercase and viece versa in pythonconvert the lowercase letter to the capital letter and vice versa pythonconverting capital letters to lowercase and viceversa in pythonuppercase to lowercase and lowercase to uppercase in pythonif uppercase python change lowercase and vice versa pythonconverting capital letters to lowercase and viceversa in python