# Dictionary of fun facts about US states
state_facts = {
“Alabama”: [
“Alabama is the only state with all major natural resources needed to make iron and steel.”,
“The first 911 call in the United States was made in Haleyville, Alabama in 1968.”,
“Alabama has the longest navigable inland waterway in the nation.”
],
“Alaska”: [
“Alaska has more than 3 million lakes.”,
“Alaska is the largest state in the US, more than twice the size of Texas.”,
“The state has 17 of the 20 highest peaks in the United States.”
],
“Arizona”: [
“Arizona is the only state in the US that doesn’t observe Daylight Saving Time (except the Navajo Nation).”,
“The Grand Canyon is one of the Seven Natural Wonders of the World.”,
“Arizona produces 60% of the country’s copper.”
],
“Arkansas”: [
“Arkansas is the only US state that produces diamonds.”,
“The state is home to the only active diamond mine in North America.”,
“Walmart, the world’s largest retailer, was founded in Bentonville, Arkansas.”
],
“California”: [
“California is the most populous state in the US with nearly 40 million residents.”,
“If California were a country, it would have the 5th largest economy in the world.”,
“Death Valley in California holds the record for the hottest temperature ever recorded on Earth: 134°F.”
],
“Colorado”: [
“Colorado has the highest mean elevation of any US state at 6,800 feet.”,
“The state has 58 mountain peaks over 14,000 feet tall.”,
“The world’s largest flat-top mountain is in Grand Mesa, Colorado.”
],
“Connecticut”: [
“Connecticut is home to the first hamburger (1900), Polaroid camera (1934), and helicopter (1939).”,
“The Frisbee was invented in Connecticut.”,
“Connecticut has the highest per capita income in the United States.”
],
“Delaware”: [
“Delaware was the first state to ratify the US Constitution on December 7, 1787.”,
“Delaware has no sales tax.”,
“More than half of all US publicly traded companies are incorporated in Delaware.”
],
“Florida”: [
“Florida has more golf courses than any other state.”,
“The state is the lightning capital of the United States.”,
“Florida is the only place in the world where alligators and crocodiles coexist in the wild.”
],
“Georgia”: [
“Georgia is the largest state east of the Mississippi River.”,
“Atlanta’s Hartsfield-Jackson Airport is the busiest airport in the world.”,
“Georgia produces more peanuts than any other state.”
],
“Hawaii”: [
“Hawaii is the only US state made up entirely of islands.”,
“The state is moving closer to Alaska by 3 inches per year.”,
“Hawaii has its own time zone and is the only state that grows coffee commercially.”
],
“Idaho”: [
“Idaho produces about one-third of all potatoes grown in the United States.”,
“Hell’s Canyon is the deepest river gorge in North America.”,
“Idaho has 3,100 miles of rivers, more than any other state.”
],
“Illinois”: [
“Chicago’s O’Hare Airport is one of the busiest airports in the world.”,
“Illinois was the first state to ratify the 13th Amendment abolishing slavery.”,
“The world’s first skyscraper was built in Chicago in 1885.”
],
“Indiana”: [
“Indiana is known as the ‘Crossroads of America’ due to its central location.”,
“The Indianapolis 500 is the largest single-day sporting event in the world.”,
“Santa Claus, Indiana receives over half a million letters and requests at Christmas time.”
],
“Iowa”: [
“Iowa produces more corn than any other state.”,
“The state has more pigs than people.”,
“The first electronic digital computer was built in Iowa in the 1930s.”
],
“Kansas”: [
“Kansas is the geographic center of the contiguous United States.”,
“The state produces enough wheat each year to make 36 billion loaves of bread.”,
“Dodge City, Kansas is the windiest city in the United States.”
],
“Kentucky”: [
“Kentucky produces 95% of the world’s bourbon.”,
“The Kentucky Derby is the oldest continuously held horse race in the country.”,
“Mammoth Cave in Kentucky is the world’s longest known cave system.”
],
“Louisiana”: [
“Louisiana is the only state with parishes instead of counties.”,
“New Orleans is considered the birthplace of jazz music.”,
“The Lake Pontchartrain Causeway is the longest continuous bridge over water in the world.”
],
“Maine”: [
“Maine is the only state with a one-syllable name.”,
“The state produces 90% of the nation’s toothpicks.”,
“Maine has 3,478 miles of coastline, more than California.”
],
“Maryland”: [
“The US Naval Academy is located in Annapolis, Maryland.”,
“Maryland’s state sport is jousting.”,
“The Ouija board was invented in Baltimore, Maryland.”
],
“Massachusetts”: [
“The first subway system in the United States was built in Boston in 1897.”,
“Basketball was invented in Springfield, Massachusetts in 1891.”,
“The Fig Newton cookie is named after Newton, Massachusetts.”
],
“Michigan”: [
“Michigan has the longest freshwater coastline in the world.”,
“The state consists of two peninsulas surrounded by four of the five Great Lakes.”,
“Detroit is known as the ‘Motor City’ and birthplace of the American automobile industry.”
],
“Minnesota”: [
“Minnesota has more than 10,000 lakes.”,
“The Mall of America in Bloomington is the largest shopping mall in the United States.”,
“Minnesota is home to the source of the Mississippi River.”
],
“Mississippi”: [
“Mississippi is the birthplace of the blues music genre.”,
“The state produces more catfish than any other state.”,
“Root beer was invented in Biloxi, Mississippi in 1898.”
],
“Missouri”: [
“Missouri is known as the ‘Show Me State’.”,
“The ice cream cone was invented at the 1904 World’s Fair in St. Louis.”,
“Missouri has more caves than any other state, earning it the nickname ‘Cave State’.”
],
“Montana”: [
“Montana has the largest grizzly bear population in the lower 48 states.”,
“The state has no sales tax.”,
“Montana is home to Glacier National Park with over 700 miles of trails.”
],
“Nebraska”: [
“Nebraska is the only state with a unicameral (one-house) legislature.”,
“The state has more miles of river than any other state.”,
“Kool-Aid was invented in Hastings, Nebraska in 1927.”
],
“Nevada”: [
“Nevada is the driest state in the United States.”,
“Las Vegas has more hotel rooms than any other city on Earth.”,
“Nevada means ‘snow-covered’ in Spanish, despite being the driest state.”
],
“New Hampshire”: [
“New Hampshire was the first state to declare independence from England.”,
“The state has no sales tax or income tax.”,
“The first potato planted in the United States was in New Hampshire.”
],
“New Jersey”: [
“New Jersey is the most densely populated state in the US.”,
“The first baseball game was played in Hoboken, New Jersey in 1846.”,
“New Jersey has more diners than any other state.”
],
“New Mexico”: [
“New Mexico has more PhDs per capita than any other state.”,
“The state is home to the oldest capital city in the US – Santa Fe, founded in 1610.”,
“Smokey Bear was based on a real bear cub rescued from a forest fire in New Mexico.”
],
“New York”: [
“New York City is home to more than 8 million people.”,
“The Statue of Liberty was a gift from France in 1886.”,
“New York has 722 miles of subway track.”
],
“North Carolina”: [
“The first powered flight took place in Kitty Hawk, North Carolina in 1903.”,
“North Carolina is the largest producer of sweet potatoes in the nation.”,
“The state is home to the oldest state university in the United States – UNC Chapel Hill.”
],
“North Dakota”: [
“North Dakota is the most rural state in the US.”,
“The state produces more honey than any other state.”,
“North Dakota has the tallest human-made structure in the Western Hemisphere – the KVLY-TV mast.”
],
“Ohio”: [
“Eight US presidents were born in Ohio, more than any other state.”,
“The first traffic light was installed in Cleveland, Ohio in 1914.”,
“Ohio’s state flag is the only non-rectangular US state flag.”
],
“Oklahoma”: [
“Oklahoma has more man-made lakes than any other state.”,
“The shopping cart was invented in Oklahoma City in 1937.”,
“The state’s name comes from Choctaw words meaning ‘red people’.”
],
“Oregon”: [
“Oregon has no sales tax.”,
“Crater Lake in Oregon is the deepest lake in the United States.”,
“Portland has more breweries than any other city in the world.”
],
“Pennsylvania”: [
“Pennsylvania is home to the first computer (ENIAC) built in 1946.”,
“The state has the first zoo in America – Philadelphia Zoo, opened in 1874.”,
“Hershey, Pennsylvania is known as the ‘Chocolate Capital of the World’.”
],
“Rhode Island”: [
“Rhode Island is the smallest state in the US.”,
“The state has over 400 miles of coastline.”,
“Rhode Island was the first colony to declare independence from Britain.”
],
“South Carolina”: [
“South Carolina was the first state to secede from the Union.”,
“The state produces more peaches than Georgia.”,
“Charleston is home to the oldest museum in America, founded in 1773.”
],
“South Dakota”: [
“Mount Rushmore features the faces of four US presidents carved into granite.”,
“South Dakota has no state income tax.”,
“The state is home to the largest, most complete T-Rex fossil ever found.”
],
“Tennessee”: [
“Tennessee is the birthplace of country music.”,
“The Great Smoky Mountains National Park is the most visited national park in the US.”,
“Tennessee has more than 10,000 caves.”
],
“Texas”: [
“Texas is the second largest state in the US.”,
“The state has its own power grid separate from the rest of the country.”,
“Dr Pepper was invented in Waco, Texas in 1885.”
],
“Utah”: [
“Utah has the youngest population of any US state.”,
“The Great Salt Lake is saltier than the ocean.”,
“Utah is the only state with a cooking pot (Dutch oven) as its official state cooking pot.”
],
“Vermont”: [
“Vermont produces more maple syrup than any other state.”,
“The state has the smallest population of any state capital – Montpelier.”,
“Ben & Jerry’s ice cream was founded in Burlington, Vermont.”
],
“Virginia”: [
“Virginia is known as the ‘Mother of Presidents’ – eight were born there.”,
“The Pentagon in Arlington is the world’s largest office building.”,
“Virginia was the first permanent English settlement in North America.”
],
“Washington”: [
“Washington produces more apples than any other state.”,
“Seattle has more houseboats than any other US city.”,
“Mount Rainier is the most glaciated peak in the contiguous US.”
],
“West Virginia”: [
“West Virginia is the only state formed by seceding from a Confederate state.”,
“The state has the oldest population of any state.”,
“The New River Gorge Bridge is the longest steel arch bridge in the Western Hemisphere.”
],
“Wisconsin”: [
“Wisconsin produces more cheese than any other state.”,
“The state is home to the first ice cream sundae.”,
“Wisconsin has more than 15,000 lakes.”
],
“Wyoming”: [
“Wyoming was the first state to grant women the right to vote.”,
“The state has the lowest population of any US state.”,
“Yellowstone National Park, the first national park in the world, is mostly in Wyoming.”
]
}
def get_random_fact(state):
“””Get a random fact about a specific state.”””
if state in state_facts:
return random.choice(state_facts[state])
else:
return f”No facts available for {state}”
def get_all_facts(state):
“””Get all facts about a specific state.”””
if state in state_facts:
return state_facts[state]
else:
return [f”No facts available for {state}”]
def get_random_state_fact():
“””Get a random fact about a random state.”””
state = random.choice(list(state_facts.keys()))
fact = random.choice(state_facts[state])
return f”{state}: {fact}”
def display_all_states():
“””Display all available states.”””
return sorted(state_facts.keys())
def quiz_mode():
“””Interactive quiz mode – guess the state from the fact.”””
state = random.choice(list(state_facts.keys()))
fact = random.choice(state_facts[state])
print(f”Fun Fact: {fact}”)
print(f”\nWhich state is this about?”)
return state
# Example usage
if __name__ == “__main__”:
print(“=== US States Fun Facts Generator ===\n”)
# Get a random fact
print(“Random fact:”)
print(get_random_state_fact())
print()
# Get all facts about a specific state
print(“All facts about California:”)
for fact in get_all_facts(“California”):
print(f” • {fact}”)
print()
# Get a random fact about a specific state
print(“Random fact about Texas:”)
print(f” • {get_random_fact(‘Texas’)}”)
print()
# Display all available states
print(f”Total states available: {len(display_all_states())}”)
print(f”States: {‘, ‘.join(display_all_states()[:10])}…”)