Can someone please explain me what the bisect_left function from the bisect library actually does? Example:
import bisect
bisect.bisect_left([1,2,3], 2)
This code will print '1'. But what is the rule for this printing? Is '2' inserted in the list, because according to the Python documentation, it should "locate the insertion point for x(in this case 2) in the list to maintain sorted order". Please, maybe someone could provide more examples and could help me to understand! Thank you!