Created
March 1, 2023 21:49
-
-
Save heyajulia/eecfe5693e3299f5b55538d05c2923ec to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cityNames = {"New York", "Geneva", "Nairobi", "Vienna", "The Hague"} | |
cities = Interpreter["City"] /@ cityNames | |
populations = #[EntityProperty["City", "Population"]] & /@ cities | |
Print[NumberForm[Total[populations], DigitBlock -> 3]] (* 15,376,617 people *) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment