// Homework 23, problem 2: Inventory weights. // // Sum every weight in the inventory map and print: // Total weight: // // Run with: go run exercises/23/homework/02-inventory-weights.go package main import "fmt" func main() { inventory := map[string]float64{ "sword": 3.5, "shield": 5.0, "potion": 0.2, "map": 0.1, "coins": 0.05, } // TODO: write your code here, in place of this placeholder line: fmt.Println("TODO: replace this line", len(inventory)) }