Course Content
Python Functions Tutorial
Python Functions Tutorial
1. What is a Function in Python?
2. Positional and Optional Arguments
4. Function Return Value Specification
5. Recursion and Lambda Functions
Challenge: Optional Arguments
Task
Swipe to begin your solution
- 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.
Solution
Switch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?
Thanks for your feedback!
Section 2. Chapter 4
Challenge: Optional Arguments
Task
Swipe to begin your solution
- 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.
Solution
Switch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?
Thanks for your feedback!
Section 2. Chapter 4
Switch to desktop for real-world practiceContinue from where you are using one of the options below