Computer Science, asked by emyshen6869, 19 days ago

Write an algorithm to insert an element in to sorted list

Answers

Answered by shalinisolanki799
1

Answer:

Python - Inserting item in sorted list maintaining order

  1. Import the module bisect.
  2. Initialize list and element that need to insert.
  3. The module bisect has a method called insort that inserts an element into a list in an appropriate position. Use the method and insert the element.
  4. Print the list.

Explanation:

please mark as brainlist

Similar questions