Python 3.4 - Functions
Functions are cool because they let you reuse code. You can update a function and have it apply to all elements of your code. You can use string methods on a function and add to, append, upper, lower, etc the function.
Here's an example:
Functions can be made, but there are many functions already:
https://docs.python.org/3/library/functions.html
https://www.youtube.com/watch?v=9Os0o3wzS_I
Here's an example:
def functionName():
suite
suite
Functions can be made, but there are many functions already:
https://docs.python.org/3/library/functions.html
https://www.youtube.com/watch?v=9Os0o3wzS_I
Comments