You can do `for key, value in alliances.items():` so you don't have to do `alliances[num]` later on.