Course
Introduction to Functions in Python
Create Your Free Account
or
By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.Loved by learners at thousands of companies
Training 2 or more people?
Try DataCamp for BusinessCourse Description
Feels like what you want to learn?
Start Course for FreeWhat you'll learn
- Assess error conditions in user-defined functions and apply try-except blocks or raise statements to handle exceptions effectively
- Distinguish between local, enclosing, global, and built-in scopes when accessing or modifying variables inside functions
- Evaluate the appropriate use of lambda expressions and higher-order functions such as map for concise data operations
- Identify the correct syntax for defining Python functions that accept single or multiple parameters and return single or multiple values
- Recognize how to implement default arguments, *args, and **kwargs to create flexible function interfaces
Prerequisites
Intermediate PythonWriting your own functions
Default arguments, variable-length arguments and scope
Lambda functions and error-handling
Complete
Earn Statement of Accomplishment
Add this credential to your LinkedIn profile, resume, or CVShare it on social media and in your performance reviewEnroll Now
FAQs
Is this course suitable for beginners?
Yes, this course is suitable for both beginners and intermediate Python users. It will provide users with an overview of writing different types of functions, including default arguments, variable-length arguments, and lambda functions.
What topics will be covered in this course?
This course covers topics such as writing functions, default arguments, variable-length arguments, scoping in Python, lambda functions and handling errors.
Will I receive a certificate at the end of the course?
Yes, you will receive a certificate of completion after successfully completing the course.
Who will benefit from this course?
Python Data Science Toolbox (Part 1) is ideal for data analysts, data engineers, data scientists, and software engineers who want to enhance their skills in Python programming.
Will I learn about scoping in Python?
Yes, this course will cover scoping in Python, which is an important concept for writing functions.
Will I learn how to write lambda functions?
Yes, this course will cover how to write lambda functions that can quickly solve problems.
Join over 19 million learners and start Introduction to Functions in Python today!
Create Your Free Account
or
By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.Grow your data skills with DataCamp for Mobile
Make progress on the go with our mobile courses and daily 5-minute coding challenges.