In the English language, "America" is not a continent, "North America" and "South America" are continents. This also makes way more sense than any other system that considers Europe, Asia, and Africa to be separate continents, but lumps north and south America into one continent.
So you would say that Mexico is in "north america" and Peru is in "south america", but you wouldnt say that either is in "america" or an american country.