def make_combat_modifiers(player1_attributes, player2_attributes):
	def vs(hero, foe):
		return {
			'health': hero['endurance'],
			'damage': max(1, hero['strength'] // foe['strength']),
			'action': max(1, hero['speed'] // foe['speed']),
			'dodging': max(1, hero['agility'] // foe['agility'])
		}

	player1_combat_modifiers = vs(player1_attributes, player2_attributes)
	player2_combat_modifiers = vs(player2_attributes, player1_attributes)
	return player1_combat_modifiers, player2_combat_modifiers

print(make_combat_modifiers(
	{'endurance': 10, 'strength': 1, 'speed': 3, 'agility': 6},
	{'endurance': 11, 'strength': 4, 'speed': 3, 'agility': 2}))