<jupyter_start><jupyter_text>Ejercicio: Crear y modificar un diccionario de Python<jupyter_code>planet = {
    'name': 'Mars',
    'moons': 2
}
print(planet.values()) 
planet['circunferencia (km)'] = {'polar': 6752, 'equatorial': 6792}

print(planet.get('name'),planet.get('circunferencia (km)'))<jupyter_output>Mars {'polar': 6752, 'equatorial': 6792}<jupyter_text>Ejercicio: Cálculo de valores<jupyter_code>planet_moons = {
    'mercury': 0,
    'venus': 0,
    'earth': 1,
    'mars': 2,
    'jupiter': 79,
    'saturn': 82,
    'uranus': 27,
    'neptune': 14,
    'pluto': 5,
    'haumea': 2,
    'makemake': 1,
    'eris': 1
}
moons = planet_moons.values()
total_moons = 0
for elem in moons:
    total_moons += elem
total_moons /= len(moons)

print(total_moons)<jupyter_output>17.833333333333332
{'fraction_non_alphanumeric': 0.17228464419475656, 'fraction_numerical': 0.06367041198501873, 'mean_word_length': 4.531034482758621, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '113701', 'license': 'MIT', 'n_tokens_mistral': 397, 'n_tokens_neox': 342, 'n_words': 65, 'path': 'Modulo8/Kata8.ipynb', 'repo_name': 'Argenis616/Curso_LaunchX-InnovaccionVirtual', 'size': '801'}