RU beehive logo ITEC dept promo banner
ITEC 109
2014spring
ibarland

homeinfolectslabsexamshws
D2Lbreeze (snow day)tutor/PIs

lab04-calling-picture-functions
Calling a function
doubles; 'argument', 'return type'

On the quiz, we saw example of things like (2n+1)², where we take the result of one operation (doubling and adding one), and use that as an input to another operation (squaring). (In general, this is “function composition” — f(g(n)), if you want to impress your friends.)

Using one function's result as input to another function is actually common. As a class, let's discuss:

Yesterday, we mentioned some file and picture-handling functions like pickAFile, makePicture, and show. Below, with a partner, you'll call these functions and you'll pass the result of one function to another!

Updated list: In Python, we have several types of values:

homeinfolectslabsexamshws
D2Lbreeze (snow day)tutor/PIs


©2013, Ian Barland, Radford University
Last modified 2014.Jan.30 (Thu)
Please mail any suggestions
(incl. typos, broken links)
to ibarlandradford.edu
Powered by PLT Scheme