How to enter a value in the middle of a list already created

0

Insertion sort I have a list already created and ordered ascending. a = [10,20,30,40,50] adding a 0 in the last position a.append (0) I have to ask for an example number 25 I have to place it in the list without losing the ascending order, so I have to run the numbers from 30 a space. would have to look something like this a = [10,20,25,30,40,50]

    
asked by Rodrigo Gutierrez 18.09.2018 в 02:40
source

0 answers