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:


def functionName():  
     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

Popular posts from this blog

Pyhton 3.4 - Continue

Conversations Ongoing: Valuing Modernization in Early European History

Conversations Ongoing: A Bunch of Amateurs