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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more