Activities for CS1 in Python, Defining Functions
Work through the following models:
Write a function that receives the width and height of a rectangle and returns the area of that rectangle.
Write additional code that uses (aka invokes) this function to print the area of a unit square.
Write a function that receives an integer and returns a list of that many integers read from the user.
Write additional code that uses (aka invokes) this function to create a list of three integers.
Download this starter code and complete the following exercises:
draw_smiley function to draw the second eye.As an exercise in finding your vocation, list examples of the things that you most enjoy doing and things that the world most needs to have done.
My deep gladness:
The world’s deep hunger:
Consider your lists in the context of F. Buechner’s description of a vocation.