0

Can anyone solve this from Google python class?

Given a list of non-empty tuples, return a list sorted in increasing order by the last element in each tuple. e.g. [(1, 7), (1, 3), (3, 4, 5), (2, 2)] yields [(2, 2), (1, 3), (3, 4, 5), (1, 7)]

28th Jan 2019, 3:02 PM
Ashutosh Dash
Ashutosh Dash - avatar
2 odpowiedzi
+ 1
Have you tried solving it?
28th Jan 2019, 4:36 PM
Diego
Diego - avatar
0
Diego Acero I did as follows, unable to move forward https://code.sololearn.com/c3T7G6NL9B4d/?ref=app
29th Jan 2019, 3:04 PM
Ashutosh Dash
Ashutosh Dash - avatar