Finding attached wall area from individual room

As part of school project, I was facing some problem splitting a attached wall that are being link horizontally (Base my room). As I know that in order to split a wall element, we can use a function call ‘split element’ in Revit to do so but my main objective of this project is not doing it manually. As I’m new toward using dynamo & python script and was hoping if any kind soul who have any idea how to guide me toward my goal.

@Original_Gemini Please read below

Thanks for the information.