Tag: Lpthw Ex 18

LPTHW - Exercise 18: Names, Variables, Code, Functions

LPTHW - Exercise 18 Yey! Functions! Turns out we've already been using them in previous exercises with things like close() and open() but here we get to write our own one properly. What is a function? A function... ...lets you group a series of statements together to perform a specific task. If different parts of the script repeat the same task, you can reuse the function (rather than repeating the same set of statements).

Read more...