Doing Your Homework
( getting ready; preparing yourself ... )
Doing your homework is doing what you need to do to prepare yourself. Example: "John is an excellent lawyer. He always does his homework."
"Doing your homework" is getting ready by doing what you need to do and learning what you need to learn.