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())
En esta página del sitio puede ver el video en línea 132. String Upper and Swapcase Method in Python with Example Code || Python String Methods-14 de Duración hora minuto segunda en buena calidad , que subió el usuario Bhavatavi 03 octubre 2022, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 2 veces y le gustó 0 a los espectadores. Disfruta viendo!