Now, we can make a function which calls the last method of the class:
def prints(string):
string.printme()
return
Next, we define two more functions. These illustrate how to pass arguments to and how to receive output from functions. The strings in parentheses are arguments on which the function depends. The value returned is signified in the 'return' statement at the end.
def caps(word):
value = string.capitalize(word)
return value
The first of these functions takes an argument word. It capitalises it via string.capitalize() and returns it as value.
