Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Challenge: Optional Arguments | Positional and Optional Arguments
Python Functions Tutorial
course content

Contenido del Curso

Python Functions Tutorial

Python Functions Tutorial

1. What is Function in Python?
2. Positional and Optional Arguments
3. Arbitrary Arguments
4. Function Return Value Specification
5. Recursion and Lambda Functions

Challenge: Optional Arguments

In the previous chapter, you learned how to use optional arguments. Now, let's apply your new skills in practice.

Tarea

  1. Set the arguments name and greeting for the function.
  2. Set a default value for the greeting argument.
  3. Run the greet function by passing only the positional argument during execution, and leave the optional argument as its default.

Tarea

  1. Set the arguments name and greeting for the function.
  2. Set a default value for the greeting argument.
  3. Run the greet function by passing only the positional argument during execution, and leave the optional argument as its default.

Cambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones

¿Todo estuvo claro?

Sección 2. Capítulo 4
toggle bottom row

Challenge: Optional Arguments

In the previous chapter, you learned how to use optional arguments. Now, let's apply your new skills in practice.

Tarea

  1. Set the arguments name and greeting for the function.
  2. Set a default value for the greeting argument.
  3. Run the greet function by passing only the positional argument during execution, and leave the optional argument as its default.

Tarea

  1. Set the arguments name and greeting for the function.
  2. Set a default value for the greeting argument.
  3. Run the greet function by passing only the positional argument during execution, and leave the optional argument as its default.

Cambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones

¿Todo estuvo claro?

Sección 2. Capítulo 4
toggle bottom row

Challenge: Optional Arguments

In the previous chapter, you learned how to use optional arguments. Now, let's apply your new skills in practice.

Tarea

  1. Set the arguments name and greeting for the function.
  2. Set a default value for the greeting argument.
  3. Run the greet function by passing only the positional argument during execution, and leave the optional argument as its default.

Tarea

  1. Set the arguments name and greeting for the function.
  2. Set a default value for the greeting argument.
  3. Run the greet function by passing only the positional argument during execution, and leave the optional argument as its default.

Cambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones

¿Todo estuvo claro?

In the previous chapter, you learned how to use optional arguments. Now, let's apply your new skills in practice.

Tarea

  1. Set the arguments name and greeting for the function.
  2. Set a default value for the greeting argument.
  3. Run the greet function by passing only the positional argument during execution, and leave the optional argument as its default.

Cambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
Sección 2. Capítulo 4
Cambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
We're sorry to hear that something went wrong. What happened?
some-alt