<jupyter_start><jupyter_text>ObjectiveThe objective of this notebook is to explore how to use notebooks for homework.You will be submitting your homework during the course using these notebooks.<jupyter_code>STUDENT_NAME = "<NAME>"
COURSE_NAME = "test1"
EXERCISE_NAME = "python-intro"
import numpy as np
import pygradus as gr
def remove_vowels(s: str) -> str:
    """
    This function removes all vowels from strings
    Example: "hello" -> "hll"
    """
    
    #sss
    
    return s.translate(str.maketrans('', '', 'aeiouáéíóú'))
    
    #eee
assert remove_vowels("hola") == "hl"
answer_1  = remove_vowels("este fue un buen día")
print(answer_1)
def sum_list_of_floats(a: list, b:list) -> list:
    """
    Returns the coordinate wise sum of a and b.
    """
    
    #sss

    return list(np.array(a) + np.array(b))

    #eee
assert np.allclose(
    sum_list_of_floats(
        [1, 2, 3], [4, 5, -2.3]),
    [5, 7, 0.7]
)
answer_2 = sum_list_of_floats([0, 0], [1, -1])
print(answer_2)
#ttt
TASKS = [
         {
             "name": "remove_vowels",
             "answer": str(answer_1),
         },
                  {
             "name": "sum_floats",
             "answer": str(answer_2),
         }
]
#ddd
config = {
    "course_name": COURSE_NAME,
    "exercise_name": EXERCISE_NAME,
    "tasks": TASKS,
    
}
response = gr.create_exercise("admin", config)<jupyter_output>··········
{'fraction_non_alphanumeric': 0.14265232974910394, 'fraction_numerical': 0.015770609318996417, 'mean_word_length': 2.732620320855615, 'pattern_counts': {'":': 7, '<': 5, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '378881', 'license': 'MIT', 'n_tokens_mistral': 544, 'n_tokens_neox': 514, 'n_words': 125, 'path': 'examples/solutions/intro_python.ipynb', 'repo_name': 'pygradus/pygradus', 'size': '1404'}