<prompt> Lakkoofsa indeeksii murtaae irratti argachuuf jecha tarree lakkoofsota kenname irratti algoritmiin barbaacha hojjedhu.tarree 21, 17, 50, 29, 52 indeeksii 3  <response>: Kunoo karaan salphaan barbaacha tarree kenname irratti raawwachuuf lakkoofsa indeksii murtaae irratti argachuuf Paayitoon fayyadamuun: python def search_listlst, idx: Indeeksii hanga tarree keessa jiraachuu isaa mirkaneessi yoo idx lenlst ykn idx 0: return Indeeksii sirrii hin taane Gatii indeeksii kenname irratti deebisi else: return lstidx list 21, 17, 50, 29, 52 index 3 result search_list tarree, indeeksii maxxansaabuaa Fakkeenya kana keessatti, faankishiniin tarree_barbaadi qajoojiiwwan 2, tarree fi indeeksii barbaadamu fudhata. Faankishinichi yoo indeeksii hanga tarree keessa jiraate sakattaa, yoo hin taane Indeeksii sirrii hin taane deebisa. Yoo indeeksii hanga keessa jiraate, faankishinichi gatii indeeksii sana irratti lstidx fayyadamuun deebisa. Tarree galtee fi indeeksii kennameef, firii 29 taa, 29 gatii indeeksii 3 tarree galtee irratti waan taeef. 