logo

Crowdly

Browser

Add to Chrome

Podaj co wykonuje poniższy program: listaNazwisk=[ "Aleksy" , "Abertanowicz"...

✅ 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=0

indeks= 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

continue

print(*listaNazwisk)

print(l)

0%
0%
100%
0%
More questions like this

Want instant access to all verified answers on el.us.edu.pl?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome