Answers for "python string sentence 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

how to apply sentence case in python

v = 'hello'
v = v.title()
print(v)
# "v.title" converts it into sentence case
Posted by: Guest on June-03-2021

Python Answers by Framework

Browse Popular Code Answers by Language