Conteúdo do Curso
Python Functions Tutorial
1. What is Function in Python?
2. Positional and Optional Arguments
4. Function Return Value Specification
5. Recursion and Lambda Functions
Python Functions Tutorial
Challenge: Building functions
Let's get to know each other. I wrote a function that will output my name to you, and you will write a function that will output your name.
So, the say_my_name
function simply prints the phrase 'My name is Heisenberg'
to the screen, and we can call this function to see this output.
Tarefa
You have to write a function that prints your name in the console. This function must have no parameters and no return value. The name of the function must be print_name
.
Once you've completed this task, click the button below the code to check your solution.
Tudo estava claro?
Conteúdo do Curso
Python Functions Tutorial
1. What is Function in Python?
2. Positional and Optional Arguments
4. Function Return Value Specification
5. Recursion and Lambda Functions
Python Functions Tutorial
Challenge: Building functions
Let's get to know each other. I wrote a function that will output my name to you, and you will write a function that will output your name.
So, the say_my_name
function simply prints the phrase 'My name is Heisenberg'
to the screen, and we can call this function to see this output.
Tarefa
You have to write a function that prints your name in the console. This function must have no parameters and no return value. The name of the function must be print_name
.
Once you've completed this task, click the button below the code to check your solution.
Tudo estava claro?