Case-insensitive String Comparison in Python

Publicado el: 25 mayo 2021
en el canal de: Programmer Banda
1,879
42

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​


En esta página del sitio puede ver el video en línea Case-insensitive String Comparison in Python de Duración hora minuto segunda en buena calidad , que subió el usuario Programmer Banda 25 mayo 2021, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 1,879 veces y le gustó 42 a los espectadores. Disfruta viendo!