You are from which batch?
My batch is DS150423
Here is your second part of the solution for that tuple question of assignment,
for j in range (1,len(a)) :
for i in range(len(a)-j) :
if a[i][1]>a[i+1][1] :
temp=a[i]
a[i]=a[i+1]
a[i+1]=temp
for i in range(len(a)) :
print(a[i])
Note :- Check the indentation please.
1 Like
Thank you mam
I have understood the solution.
3 Likes