У меня есть следующий вывод:
datos=['Venta Casas CARRETERA NACIONAL, Nuevo León', 'Publicado el 29 de Abr', 'ABEDUL DE LADERAS', '3 Recámaras', '4.5 Baños', '300m² de Construcción', '300m² de Terreno', '2 Plantas', ' 81-1255-3166', ' Preguntale al vendedor', 'http://zuhausebienesraices.nocnok.com/', "INFOSTATS_ADOAnuncios('5', '30559440');"]
И я хотел бы присвоить каждому элементу другую переменную, если он есть в списке, иначе он будет равен 0. Например:
recamara= the string from the list that has the word "Recámara"
bano= the string from the list that has the string "Baño"
и так далее. А если слова "Баньо" нет в списке, то bano= 0