Pensacola is a city in the Florida Panhandle, on the Gulf of Mexico coast in the southeastern United States. It sits on the North American continent—specifically within the United States of America.
The question "What continent is Pensacola in?" may stem from misunderstanding. Pensacola is on the continent of North America. It is not a continent itself, nor is it located on a continent in the sense of being separate from one.
Pensacola is America's First Settlement (1559, Spanish), changing hands five times—Spain, France, Britain, Spain, USA—earning its "City of Five Flags" nickname.