how to seperate objects in edit mode in blender code example
Example: separate object blender
Select the faces to seperate in edit mode
press 'P' and choose "By selection"
Select the faces to seperate in edit mode
press 'P' and choose "By selection"