Tracing function calls | Intro to CS - Python | Khan Academy

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



Duration: 0:00
8,591 views
145


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

How does the computer execute a function call? Learn how the computer uses stack frames to separate its memory during function execution. Trace a program step-by-step to see how arguments get passed into a function call and how return values get passed out. 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:57 : reading the function definition
00:58 - 01:17 : global variable assignment
01:18 - 01:46 : calling the function
01:59 - 02:42 : stack frames
02:43 - 03:39 : returning a value
03:40 - 04:31 : second function call
04:32 - 05:01 : ignoring the return value
05:02 - 05:33 : terminating the program




Other Videos By Khan Academy


2024-10-25Lo-Fi Khan Beats to Study/Relax to
2024-10-17How to subtract mixed numbers that have unlike denominators | Fractions | Pre-Algebra | Khan Academy
2024-10-04Proportional reasoning with motion | AP Physics 1 | 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