Challenge 4 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 7

Challenge 4

Make a sublist of [1,8,6,4,3,2,2,7,9,2] into [1,8,6,4,3] and [2,2,7,9,2] sort the sub list and join two list and sort again and remove duplicate

12th Oct 2017, 12:45 AM
Amar Dahake
1 Answer
+ 6
Hmm... actually the last task kind of makes all other redundant. You just: print(sorted(set(full))) to achieve the final effect. A code below: https://code.sololearn.com/cbRvXBUNesQZ/?ref=app
12th Oct 2017, 6:23 AM
Kuba Siekierzyński
Kuba Siekierzyński - avatar