diff --git a/drafts/40-define-functions/500-named-arguments/description.en.yml b/drafts/40-define-functions/500-named-arguments/description.en.yml index b509b534..13c5c039 100644 --- a/drafts/40-define-functions/500-named-arguments/description.en.yml +++ b/drafts/40-define-functions/500-named-arguments/description.en.yml @@ -36,7 +36,7 @@ theory: | The latter is useful if the function has many optional parameters. Let's look at an example: ```python - def print_params(a=1, b=2, c=None, d=4): + def print_params(a=1, b=2, c=3, d=4): print(a, b, c, d) # You only need to pass d, but you have to pass all diff --git a/modules/40-define-functions/500-named-arguments/description.es.yml b/modules/40-define-functions/500-named-arguments/description.es.yml index c8b0d6cf..4631d548 100644 --- a/modules/40-define-functions/500-named-arguments/description.es.yml +++ b/modules/40-define-functions/500-named-arguments/description.es.yml @@ -36,7 +36,7 @@ theory: | Esto último es útil cuando una función tiene muchos parámetros opcionales. Veamos un ejemplo: ```python - def print_params(a=1, b=2, c=None, d=4): + def print_params(a=1, b=2, c=3, d=4): print(a, b, c, d) # Solo necesitamos pasar d, pero tenemos que pasar todos los demás diff --git a/modules/40-define-functions/500-named-arguments/en/README.md b/modules/40-define-functions/500-named-arguments/en/README.md index a7c105e5..79431ebe 100644 --- a/modules/40-define-functions/500-named-arguments/en/README.md +++ b/modules/40-define-functions/500-named-arguments/en/README.md @@ -32,7 +32,7 @@ There are two reasons to use named arguments: The latter is useful if the function has many optional parameters. Let's look at an example: ```python -def print_params(a=1, b=2, c=None, d=4): +def print_params(a=1, b=2, c=3, d=4): print(a, b, c, d) # You only need to pass d, but you have to pass all diff --git a/modules/40-define-functions/500-named-arguments/es/README.md b/modules/40-define-functions/500-named-arguments/es/README.md index 63af0ea1..4060d2a8 100644 --- a/modules/40-define-functions/500-named-arguments/es/README.md +++ b/modules/40-define-functions/500-named-arguments/es/README.md @@ -32,7 +32,7 @@ Hay dos razones para usar argumentos nombrados: Esto último es útil cuando una función tiene muchos parámetros opcionales. Veamos un ejemplo: ```python -def print_params(a=1, b=2, c=None, d=4): +def print_params(a=1, b=2, c=3, d=4): print(a, b, c, d) # Solo necesitamos pasar d, pero tenemos que pasar todos los demás diff --git a/modules/40-define-functions/500-named-arguments/ru/README.md b/modules/40-define-functions/500-named-arguments/ru/README.md index a54f2efe..d2b5b3cf 100644 --- a/modules/40-define-functions/500-named-arguments/ru/README.md +++ b/modules/40-define-functions/500-named-arguments/ru/README.md @@ -32,7 +32,7 @@ truncate(length=3, text='My Text') Последнее полезно, если у функции много необязательных параметров. Посмотрим на примере: ```python -def print_params(a=1, b=2, c=None, d=4): +def print_params(a=1, b=2, c=3, d=4): print(a, b, c, d) # Нужно передать только d, но приходится передавать все