ข้ามไปยังเนื้อหาหลัก
บ้านPython

Courses

Introduction to Functions in Python

พื้นฐานระดับทักษะ
อัปเดตแล้ว 12/2568
Learn the art of writing your own functions in Python, as well as key concepts like scoping and error handling.
เริ่มเรียนคอร์สฟรี
PythonProgramming
3 ชม.
10 videos
44 Exercises
3,550 เอ็กซ์พี
460K+
ใบรับรองความสำเร็จ

สร้างบัญชีฟรีของคุณ

ดำเนินการต่อด้วย Googleแสดงตัวเลือกเพิ่มเติม

หรือ


เมื่อดำเนินการต่อ คุณยอมรับ ข้อกำหนดการใช้งาน ของเรา นโยบายความเป็นส่วนตัว ของเรา และยอมรับว่าข้อมูลของคุณจะถูกจัดเก็บในสหรัฐอเมริกา

เป็นที่ชื่นชอบของผู้เรียนในบริษัทนับพันแห่ง

Group

ฝึกอบรมทีมอยู่หรือ?

ลองใช้สำหรับธุรกิจ

คำอธิบายหลักสูตร

It's time to push forward and develop your Python chops even further. Python has tons of fantastic functions and a module ecosystem. However, as a data professional or developer, you'll constantly need to write your own functions to solve problems that are dictated by your data. You will learn the art of function writing in this first course. You'll come out of this course being able to write your very own custom functions, complete with multiple parameters and multiple return values, along with default arguments and variable-length arguments. You'll gain insight into scoping in Python, be able to write lambda functions and handle errors in your function writing practice. You'll wrap up each chapter by using your new skills to write functions that analyze Twitter data.The videos contain live transcripts you can reveal by clicking "Show transcript" at the bottom left of the videos. The course glossary can be found on the right in the resources section. To obtain CPE credits you need to complete the course and reach a score of 70% on the qualified assessment. You can navigate to the assessment by clicking on the CPE credits callout on the right.

ข้อกำหนดเบื้องต้น

Intermediate Python
1

Writing your own functions

You'll learn how to write simple functions, as well as functions that accept multiple arguments and return multiple values. You'll also have the opportunity to apply these new skills to questions commonly encountered by data professionals and developers.
เริ่มบทเรียน
2

Default arguments, variable-length arguments and scope

You'll learn to write functions with default arguments so that the user doesn't always need to specify them, and variable-length arguments so they can pass an arbitrary number of arguments on to your functions. You'll also learn about the essential concept of scope.
เริ่มบทเรียน
Introduction to Functions in Python
เรียนจบคอร์สแล้ว

รับใบรับรองความสำเร็จ

เพิ่มข้อมูลรับรองนี้ลงในโปรไฟล์ LinkedIn, เรซูเม่ หรือ CV ของคุณ
แชร์บนโซเชียลมีเดียและในการประเมินผลงานของคุณ
สมัครเลย

เข้าร่วมกับผู้เรียนกว่า 19 ล้านคน และเริ่มIntroduction to Functions in Pythonวันนี้!

สร้างบัญชีฟรีของคุณ

ดำเนินการต่อด้วย Googleแสดงตัวเลือกเพิ่มเติม

หรือ


เมื่อดำเนินการต่อ คุณยอมรับ ข้อกำหนดการใช้งาน ของเรา นโยบายความเป็นส่วนตัว ของเรา และยอมรับว่าข้อมูลของคุณจะถูกจัดเก็บในสหรัฐอเมริกา

พัฒนาทักษะด้านข้อมูลของคุณด้วย DataCamp for Mobile

พัฒนาทักษะได้ทุกที่ทุกเวลาด้วยคอร์สเรียนบนมือถือและแบบฝึกหัดเขียนโค้ดประจำวัน 5 นาทีของเรา