Providing a question solution

@yogeshbhardwaj1001

You are from which batch?

@zk6290254938 , he should be from DS150423.

My batch is DS150423

@titiksha.chakraborty

Thank you.
I was confirming because I wasn’t able to find him.

@yogeshbhardwaj1001

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