<jupyter_start><jupyter_text>Ejercicio 1: Transformar cadenas<jupyter_code>text = """Interesting facts about the Moon. The Moon is Earth's only satellite. There are several interesting facts about the Moon and how it affects life here on Earth. 
On average, the Moon moves 4cm away from the Earth every year. This yearly drift is not significant enough to cause immediate effects on Earth. The highest daylight temperature of the Moon is 127 C."""
oraciones = text.split('.')
average = "average"
temperature = "temperature"
distance = "distance"

for elem in oraciones:
    if(average or temperature or distance) in elem.lower():
        print(elem)
for elem in oraciones:
    print(elem.replace("C","Celsius"))<jupyter_output>Interesting facts about the Moon
 The Moon is Earth's only satellite
 There are several interesting facts about the Moon and how it affects life here on Earth
 
On average, the Moon moves 4cm away from the Earth every year
 This yearly drift is not significant enough to cause immediate effects on Earth
 The highest daylight temperature of the Moon is 127 Celsius<jupyter_text>Ejercicio 2: Formateando Cadenas<jupyter_code>name = "Moon"
gravity = 0.00162 # in kms
planet = "Earth"
titulo = "Gravity Facts " + "about " + planet + " and " + name

plantilla = "planeta = {planet}" + planet + "\n" + "gravedad = {gravity}" + str(gravity*1000) + " m/s2"+  "\n" + "nombre = {name}" + name
plantilla.format(planet = planet, gravity = gravity, name = name)

separacion = "-"*30
banner  = titulo + "\n" + separacion + "\n" + plantilla
print(banner)<jupyter_output>Gravity Facts about Earth and Moon
------------------------------
planeta = {planet}Earth
gravedad = {gravity}1.6199999999999999 m/s2
nombre = {name}Moon
{'fraction_non_alphanumeric': 0.11059907834101383, 'fraction_numerical': 0.023617511520737326, 'mean_word_length': 4.263636363636364, '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': '576159', 'license': 'MIT', 'n_tokens_mistral': 561, 'n_tokens_neox': 507, 'n_words': 209, 'path': 'Modulo4/kata4.ipynb', 'repo_name': 'Argenis616/Curso_LaunchX-InnovaccionVirtual', 'size': '1736'}