I'm trying to merge two user inputted lists that have been sorted in descending order. I understand how to merge two lists then sort, however i'm struggling the other way around.
# user list input
a = [int(x) for x in input("List 1: ").split()]
b = [int(y) for y in input("List 2: ").split()]
a.sort(reverse=True)
b.sort(reverse=True)
print(a + b)
For example, I want to input: [1, 3, 3, 6]
& [1, 4, 5]
, and my output be: [6, 5, 4, 3, 3, 1, 1]