educative.io

Educative

My solution is valid?

def merge_lists(lst1, lst2):

sorted_list = sorted(lst1 + lst2)

return sorted_list

merge_lists([2,4,5,6,8,10],[3,5,7,9])


Course: Educative: Interactive Courses for Software Developers
Lesson: Educative: Interactive Courses for Software Developers

Hello @Marcelo_Goes_de_Frei,
Yes, your solution would work. The + symbol you used is a python built-in functionality to concatenate lists, and the sorted function would sort the list for you.
Hope this helps