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
На этой странице сайта вы можете посмотреть видео онлайн Case-insensitive String Comparison in Python длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Programmer Banda 25 Май 2021, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 1,879 раз и оно понравилось 42 зрителям. Приятного просмотра!