Conversation so far:
What branch of the US armed forces was John McCain part of?
McCain began his early military career when he was commissioned as an ensign and started two and a half years of training at Pensacola to become a naval aviator.
Did being a in the Navy interest John McCain in politics?
CANNOTANSWER.
Who was John McCain's first wife?
At age 28 on July 3, 1965, McCain married Carol Shepp, who was a model from Philadelphia.

Question: What assignment did John McCain have in the navy?
Self-contained rewrite: What assignment did John McCain have in the navy?