Moving mesh between objects?

I was working on one of the assignments, and accidentally added a mesh within another one while in edit mode, instead of adding it in object mode so that it would be separate. Is there a way to separate that, or will I have to delete my work and start again? Thank you!