Javascript List To Map Python Example