<commit_before># 02-functions Instructor notes

### After flashing the first function for temperature conversion:

- Demonstrate default values: show how convert_fahr() doesn't work. 
- Change function to have default value for the temperature (e.g., `temp = 0` 
and `to = "celcius"`, and show how now `convert_fahr()` works.
- Use this to expand on using `match.arg` coming up.

### <commit_msg>complete instructor notes<commit_after># 02-functions Instructor notes

### After flashing the first function for temperature conversion:

- Demonstrate default values: show how convert_fahr() doesn't work. 
- Change function to have default value for the temperature (e.g., `temp = 0` 
and `to = "celcius"`, and show how now `convert_fahr()` works.
- Use this to expand on using `match.arg` coming up.

### After expendable section

- Demonstrate scoping:
    -  Show that there is no variable `to`, `temp` or `res` in the global 
    environment. 
    - Then assign a value to the variable `to` or `res` and show that it 
    doesn't affect the behavior of the function.
{'fraction_non_alphanumeric': 0.09550561797752809, 'fraction_numerical': 0.0056179775280898875, 'mean_word_length': 3.972093023255814, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5193903', 'n_tokens_mistral': 316, 'n_tokens_neox': 298, 'n_words': 142}