Answer:
Following are the code to this question:
btcdec1=[11234, 12475] #defining a list btcdec1 that holds two integer values
btcdec1.append(14560)#using append method to add value in btcdec1 list
btcdec2=[]#defining an empty list btcdec2
btcdec2.append(15630)#using append method to add value in btcdec2 list
btcdec2.append(12475)#using append method to add value in btcdec2 list
btcdec2.append(14972)#using append method to add value in btcdec2 list
btcdec1.extend(btcdec2)#using the extend method to add value list into btcdec1
btcdec1.sort()#using sort method to arrange value in ascending order
print(btcdec1)#print list btcdec1
Output:
[11234, 12475, 12475, 14560, 14972, 15630]
Step-by-step explanation:
In this code a list "btcdec1" is declared, which holds two integer variables, in the next step, it uses the append method to add another element into the list.
In the next step, another empty list "btcdec2" is declared, which uses the append method to hold the integer element, and uses the extend and sort method to add the second list into the first one and then sort the whole list and print its values.