# Turn a dictionary of currencies (e.g. "USD"=>"name"=>"United States dollar","symbol"=>"$") into a vector of strings. function currencies_from_dict(dict::Dict) return [string(v["name"], " (", get(v, "symbol", "?"), ")") for (_, v) in dict] end
# ---------------------------------------------------------------- # 3️⃣ Core function: fetch + analyse # ---------------------------------------------------------------- """ analyze_country(name_or_code::AbstractString; gdp_table=nothing) julia pais anal
report = analyze_country("France"; gdp_table=sample_gdp) println(report) # Turn a dictionary of currencies (e