DEV Community

Cover image for Ibuprofeno.py💊| #138: Explica este código Python
Cristian Fernando
Cristian Fernando

Posted on

Ibuprofeno.py💊| #138: Explica este código Python

Explica este código Python

Dificultad: Fácil

def f(x, y, z):
    return x * y * z

print(f(y=2, x=1, z=4))
Enter fullscreen mode Exit fullscreen mode
  • A. 2
  • B. 4
  • C. 8
  • D. SyntaxError

Respuesta:

👉 C. 8

En la funciones de Python existe el concepto de argumentos nominales o argumentos por nombre , es una característica muy interesante de Python que nos permite llamar a una función con cada argumento nombrado, esto permite que el orden de los argumentos no importe.

Top comments (0)

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay