✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Podaj co wykonuje poniższy program:
listaNazwisk=["Aleksy","Abertanowicz","Jurecki","Zrzymała","Zamora","Wyrobski","Ksawerczyński","Merta","Baton","Żurek"]l=0indeks= len(listaNazwisk)for i in listaNazwisk: for j in listaNazwisk: tempIndeks = listaNazwisk.index(j) if (tempIndeks<indeks-1) and (j.__gt__(listaNazwisk[tempIndeks+1])): listaNazwisk[tempIndeks]=listaNazwisk[tempIndeks+1] listaNazwisk[tempIndeks+1]=j l+=1 continue continueprint(*listaNazwisk)print(l)