Code:
string='this should be uppercase!'
print(string.upper())
string='Th!s Should B3 UPp3rCas3!'
print(string.upper())
firstString='python is awesome!'
secondString='PyTHon Is aWEsoME!'
if(firstString.upper()==secondString.upper()):
print("Strings are same.")
else:
print("Strings are not same.")
#swapcase
string='THIS SHOULD BE LOWERCASE!'
print(string.swapcase())
string='this should be uppercase!'
print(string.swapcase())
string='ThiS ShouLD Be MiXeD cASed.'
print(string.swapcase())
On this page of the site you can watch the video online 132. String Upper and Swapcase Method in Python with Example Code || Python String Methods-14 with a duration of hours minute second in good quality, which was uploaded by the user Bhavatavi 03 October 2022, share the link with friends and acquaintances, this video has already been watched 2 times on youtube and it was liked by 0 viewers. Enjoy your viewing!