In this video i have shown you how to compare strings with case insensitivity.
Code:
laptops = ['Msi', 'Lenovo', 'Hp', 'Dell']
our_laptop = 'Acer'
for laptop in laptops:
if laptop.lower() == our_laptop.lower():
print(our_laptop, 'Exists')
else:
pass
If you found the video valuable, please leave a like and subscribe ❤️ It helps the channel grow and helps me pumping out more such content.
#shorts
#python3 #programming #pythontips
Nesta página do site você pode assistir ao vídeo on-line Case-insensitive String Comparison in Python duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Programmer Banda 25 Maio 2021, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 1,879 vezes e gostou 42 espectadores. Boa visualização!