Answers for "python program to invert string case"

1

python convert string to sentence case

>>> s="OPERATOR FAIL TO PROPERLY REMOVE SOLID WASTE"
>>> s.capitalize()
Posted by: Guest on April-11-2021
0

revesing case python

t = "Mr.Brown"
nt = t.swapcase()
print(nt)
#print: mR.bROWN
Posted by: Guest on July-02-2021

Python Answers by Framework

Browse Popular Code Answers by Language