We just saw how functions work in Assembly; essentially, a function is a little piece of code in our programs that we can use over and over again by calling it and providing some initial values. For example, we might make a program that adds up two numbers and we may call it with the values 10 and 20; the function then returns 30. Functions are an extremely important part of programming and it is well worth your time to learn about'em.
This is a neat, example-based introduction to functions in Python. Your only exercise is to go through all of the examples here.
|⇐ Back to 2.3||Home||Onwards to 2.5 ⇒|