Skip to content

fix simple typo #333

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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, но приходится передавать все
Expand Down