Functions | Intro to CS - Python | Khan Academy

Channel:
Subscribers:
8,900,000
Published on ● Video Link: https://www.youtube.com/watch?v=UmNKiV7Lekk



Duration: 0:00
10,285 views
190


Courses on Khan Academy are always 100% free. Start practicing—and saving your progress—now with our Intro to Computer Science - Python course!

How can we reuse a code routine over and over again? Learn how to use functions to package a block of code and parameters to generalize it. Learn how to write your own function definitions, and explore how the computer executes a function call. View the program used in this video at: https://www.khanacademy.org/python-pr...

Course link: https://www.khanacademy.org/computing...
Course playlist:    • Intro to Computer Science - Python | ...  

Khan Academy is a nonprofit organization with the mission of providing a free, world-class education for anyone, anywhere. We offer quizzes, questions, instructional videos, and articles on a range of academic subjects, including math, biology, chemistry, physics, history, economics, finance, grammar, preschool learning, and more. We provide teachers with tools and data so they can help their students develop the skills, habits, and mindsets for success in school and beyond. Khan Academy has been translated into dozens of languages, and 15 million people around the globe learn on Khan Academy every month. As a 501(c)(3) nonprofit organization, we would love your help!

Donate or volunteer today! Donate here: https://www.khanacademy.org/donate?ut...

Volunteer here: https://www.khanacademy.org/contribut...

TIMESTAMPS:
00:00 - 00:16 : code duplication
00:17 - 00:43 : what is a function?
00:44 - 01:10 : function inputs and outputs
01:11 - 02:24 : function definition syntax
02:25 - 03:17 : calling a function
03:18 - 03:54 : refactoring a program into functions
03:55 - 04:41 : why use functions?




Other Videos By Khan Academy


2024-10-02Dealing cards with functions | Intro to CS - Python | Khan Academy
2024-10-01Developing kinematic equations from data | AP Physics 1 | Khan Academy
2024-09-30Nested function calls | Intro to CS - Python | Khan Academy
2024-09-27Constitution 101 - Start the free course today!
2024-09-26How to Use Khan Academy's Free Courses for Texas Teachers and Students
2024-09-25Local and global scope | Intro to CS - Python | Khan Academy
2024-09-23"I can’t imagine teaching without Khanmigo.”
2024-09-18Tracing function calls | Intro to CS - Python | Khan Academy
2024-09-17Primitive data types | Intro to CS - Python | Khan Academy
2024-09-16The elements of a poem | Reading | Khan Academy
2024-09-13Functions | Intro to CS - Python | Khan Academy
2024-09-12Electron configurations with the periodic table | Chemistry | Khan Academy
2024-09-12Molecular polarity | Chemistry | Khan Academy
2024-09-09Calculations using Avogadro's number (part 2) | Chemistry | Khan Academy
2024-09-09Calculations using Avogadro's number (part 1) | Chemistry | Khan Academy
2024-09-07Games and modularity | Intro to CS - Python | Khan Academy
2024-09-03Double replacement reactions | Chemistry | Khan Academy
2024-09-03BIG Emotions! Help Kids Identify Feelings With New Lessons From Khan Academy Kids
2024-08-28Five reasons to use Khan Academy's Intro to CS course #computerscience #educators
2024-08-26Writing a quadratic function to fit data and estimate solutions | Algebra 1 (TX TEKS) | Khan Academy
2024-08-26Graphing arithmetic sequences | Algebra I (TX TEKS) | Khan Academy