132. String Upper and Swapcase Method in Python with Example Code || Python String Methods-14

preview_player
Показать описание
Code:

string='this should be uppercase!'

string='Th!s Should B3 UPp3rCas3!'

firstString='python is awesome!'
secondString='PyTHon Is aWEsoME!'
print("Strings are same.")
else:
print("Strings are not same.")
#swapcase

string='THIS SHOULD BE LOWERCASE!'
string='this should be uppercase!'
string='ThiS ShouLD Be MiXeD cASed.'
Рекомендации по теме
welcome to shbcf.ru