The peanut wasn't "invented" by a country, but rather originated in South America.
Peanuts, or groundnuts, are believed to have originated in South America, specifically in the region of modern-day Bolivia and Argentina. From there, they spread throughout South America. It was through European explorers and traders that peanuts were then disseminated across the globe, eventually reaching Asia, Africa, and North America. While no single country can claim to have "invented" the peanut, South America is recognized as its place of origin. Today, the largest producers of peanuts are China, India, and the United States.