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

Publicado em: 03 Outubro 2022
no canal de: Bhavatavi
2
0

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())


Nesta página do site você pode assistir ao vídeo on-line 132. String Upper and Swapcase Method in Python with Example Code || Python String Methods-14 duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Bhavatavi 03 Outubro 2022, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 2 vezes e gostou 0 espectadores. Boa visualização!