converting capital letters to lowercase and viceversa in python
s=input()
new_str=""
for i in range (len(s)):
if s[i].isupper():
new_str+=s[i].lower()
elif s[i].islower():
new_str+=s[i].upper()
else:
new_str+=s[i]
print(new_str)
Log in, to leave a comment
Are there any code examples left?
New code examples in category Python
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Relative searches
python capital letter to small
how to turn uppercase into lowercase in python
how to change uppercase to lowercase in python
convert string to all caps python
python code to convert lowercase to uppercase
How to upper case and lower case in python
create space between small letter and capital letter in string python
convert capital letter to small in python
how to convert small to capital in python
python function name with capital lower case letters
python function capital letters lower case
python capital letters lower case
Convert the lowercase letter to the capital letter and vice versa python
how to count uppercase and lowercase in python
function to convert uppercase to lowercase in python
convert uppercase to lowercase python
lower upper caps in python check
python caps letter example
how to convert capital letters to small letters in python
in python convert the smaller case letter in the uppercase letter
How to convert the uppercase letters in the string to lowercase in Python?
how to convert lowecase sentence into uppercase in python
python make lowercase upp and upper case lower
change lowercase string to uppercase in python
change lowercase to uppercase in python
is text is lowercase make it upper python
lowercase uppercase mix python
convert lowercase to uppercase python
convert all lower to uppercase python
how to match capital letter and small in python
how to convert uppercase to lowercase in python and vice versa
find out number of uppercase and lower case characters in string using python
how to make capital letters lowercase in python
how to change a lowercase letter to uppercase in python encoding
uppercase to lowercase and lowercase to uppercase in python
lowercase to uppercaseof character in python
python make a string all caps
converting a single letter to upper python
how to change lower case to upper case and upper case to lower case in python
python convert capital letters to lowercase
python small caps
python all caps string
how to make a string have upper case and lower case python
convert upper case to lower case python
one string can read uppercase and lowercase character python
uppercase character read lowercase character in python
change capital to lowercase python
is uppercase lower than lower case in python
char val in python for lowercase and uppercase
upper case letter lower case letter python
changing uppercase to lowercase in python
capital to small python
how to convert capital letters to small letters vice versa in pyhton
convert uppercase to lowercase in python
string capitals or small python
how to convert a character from lowercase to uppercase in python
convert Decussate lowercase letters to uppercase letters in python
how to change lower case to upper python
convert all lowercase letters to uppercase letters in python
convert capital to small in python
python upper lower and sentence example
how to convert upper case to lower in python
how to turn the capital letters in small letter and small letter into capital letter python
caps to small in python and small to caps at a time in python
caps to small in python and small to caps in python
python how many letters are capital in straing
uppercase to lowercase python code
convert lowercase to uppercase in python without using function
how to change small letter to capital in python
char from lower to upper case python
how to turn capital letters into lowercase of a word file in python
how to change capital letters to lowercase in python
how to convert uppercase to lowercase in python
python to caps
string lower and uppercase alphabet python
convert letter to capital in python
how to turn capital letters into lowercase in python
python program to count uppercase and lowercase in a string
convert capital letter to small letter python
function in python for uppercase or lowercase an entire string
small to caps in python
how to convert lower to upper case in python
convert all lower case to uppercase and viece versa in python function
convert all lower case to uppercase and viece versa in python
python calculate the number of upper case letters and lower case letters
if i write upperacse and lowercase letter how can i treat both of them as same in python
change small letter to capital letter pythno
python turn all caps
how to compare a string with any capital letter or small letter python
python put string all in caps
python string all caps
count uppercase and lowercase in python
how to convert small to capital python
How to convert the uppercase letters in the string to lowercase in Python? lowercase() capilaize() lower() toLower()
how to make python read uppercase and lowercase letters in def
how to make python read uppercase and lowercase letters
how to convert all caps string in python
make all caps python
all caps python
change capital letters to lowercase python
how to convert from uppercase to lowercase in python
how to convert uppercase to lowercase and lowercase to uppercase in python
change upper to lowercase and lower to uppercase python
changing upper and lowercase in python
changing upper and lowercase case in python
capital to small latter convert in python
converting capital letter to small letter in python
capital letter to small letter pytho
python string small caps
hwo to caps letters in python
does capital letter and small letter same in python
change upper case to lower python
pythom small letter to a capital letter
how to make a strng all caps in python
turn to small caps in python
how yo change letters to capital python
how to change python from upper case to lower case
make a string all caps python
python string to caps
convers caps to small string python
python capitalized to lower
How to turn lowercase letters into uppercase letters Python
python how to change lowercase to uppercase
capital letters a less than small in python
capital letter to small letter python
print lower case letter from capital letters python
USING PYTHON TO CHANGE CAPITAL INTO SMALL
uppercase lowercase and number symbol in python
How to convert a capital letter to a lowercase letter in Python
upper to lower and lower to upper in python
python capitalize making string lower
if uppercase python change lowercase and vice versa python
Write a Python program to Chang upper to lower case strings and vice versa.
python switch uppercase
change case of character in string python
how to change lower to upper and vice versa at same time in python
toggle upper to lowercase python
change lower case to uppercase and uppercase to lowercase python
upper letter into lower letter vice versa of the given string python
how to write a function that converts all lowercase to uppercase and all uppercase to lowercase
python reverse upper and lowercase of string
python function tyo swap the cases
how to switch upper lower case in python
change upper to lower and lower to upper in python
swapping case in python
Write a python program to convert uppercase strings to togglecase
convert lowercase to uppercase and upper case in lower case in python
how to change case in python
change the case of string in python
case change in python
change case function in python
to upper and to lower individual cha in python
swapping cases in python
to convert lowercase to uppercase and vice-versa in python
convert lower to upper and upper to lower in python
convert upper to lower and lower to upper in python
lowercase to uppercase and vice versa in python
how to convert uppercase to lowercase and lowercase to uppercase in same string in python
change the case in python
python swap letter case
convert uppercase to lowercase and vice versa in python
how to swap a lowercase character to uppercase in python
reverse string and convert lower case to upper and upper case to lower python
python change case of a character
swapcase syntax in python
how to convert a sentence swapped cases in python
how to swap case
how to convert lowercase to uppercase and uppercase to lowercase in python at time
case swap python
how to swap cases in python
swap case python
swap case in python
sWAP cASE
python swap case
how to convert uppercase to lowercase and vice versa in python
python program switch uppercase and vice versa
convert all lowercase letters to uppercase letters and vice versa. in python
switch letter case python
converting capital letters to lowercase and viceversa in python