Conteúdo do Curso
Python Functions Tutorial
Python Functions Tutorial
Challenge: Optional Arguments
In the previous chapter, you learned how to use optional arguments. Now, let's apply your new skills in practice.
Tarefa
- Set the arguments
name
andgreeting
for the function. - Set a default value for the
greeting
argument. - Run the
greet
function by passing only the positional argument during execution, and leave the optional argument as its default.
Obrigado pelo seu feedback!
Challenge: Optional Arguments
In the previous chapter, you learned how to use optional arguments. Now, let's apply your new skills in practice.
Tarefa
- Set the arguments
name
andgreeting
for the function. - Set a default value for the
greeting
argument. - Run the
greet
function by passing only the positional argument during execution, and leave the optional argument as its default.
Obrigado pelo seu feedback!
Challenge: Optional Arguments
In the previous chapter, you learned how to use optional arguments. Now, let's apply your new skills in practice.
Tarefa
- Set the arguments
name
andgreeting
for the function. - Set a default value for the
greeting
argument. - Run the
greet
function by passing only the positional argument during execution, and leave the optional argument as its default.
Obrigado pelo seu feedback!
In the previous chapter, you learned how to use optional arguments. Now, let's apply your new skills in practice.
Tarefa
- Set the arguments
name
andgreeting
for the function. - Set a default value for the
greeting
argument. - Run the
greet
function by passing only the positional argument during execution, and leave the optional argument as its default.