What you'll learn:
- Functions
Just a few practical examples:
- Writing code that is very flexible, reusable, and has different effects based on the variables passed to it
Examples in real projects:
- Determines whether a string contains only hexadecimal characters (0-9, a-f): Used in https://metromapmaker.com
- Replaces the contents of a given string with potentially unsafe HTML characters removed: Used in https://metromapmaker.com
Code Samples:
Exercises:
- CSV to List: https://github.com/shannonturner/python-lessons/blob/master/playtime/lesson04_csvtolist.py
- Deduplicate: https://github.com/shannonturner/python-lessons/blob/master/playtime/lesson04_deduplicate.py
Concepts Learned:
- Functions
Keywords learned:
- def
- return