Split Lines At Points Python Programming