Continued adventures in learning Python (started here):
A function gives you a return value based on an argument that you input. Â The function len will give you a return value of the number of elements in an object. Â The argument you provide is the name of the object. Â In this example the object is called “names.”
You create a function by using the syntax def (define). Â This function is called “Mary” (it could be called anything). Â The function doubles the argument.