insert_sorted(items, value) that inserts value into the ascending-sorted list items at the correct position to keep it sorted, and returns the list. Do not call .sort() afterward — find the position and use .insert().items = [1, 3, 5, 7], value = 4
[1, 3, 4, 5, 7]
4 belongs between 3 and 5.
Scan for the first index where items[i] > value, and insert there.
If value is bigger than everything, it belongs at the end.