DyingLoveGrape.

(home) (about) (rss)

Part 2, Section 4:
A Bit of Programming.





Making Functions in Python.

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.



⇐ Back to 2.3HomeOnwards to 2.5 ⇒