<commit_before>---
author: 
- namagic
- izayak
title: "Chapter 8 In Class Pair Exercise"
layout: post
---

<iframe src="https://trinket.io/embed/python/3846dec449" width="100%" height="600" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen></iframe>  

*Exercise 4*
- [x] Used nested loop
- [x] Lower case
- [ ] Tried to put all the lines together then do the split. Haven't figured out yet.

<commit_msg>Update Ch8 in class exercise<commit_after>---
author: 
- namagic
- izayak
title: "Chapter 8 In Class Pair Exercise"
layout: post
---

<iframe src="https://trinket.io/embed/python/3846dec449" width="100%" height="600" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen></iframe>  

**Exercise 4**  
- [x] Used nested loop
- [x] The use of 'item'
- [x] Lower case: fixed where to put the lowercase transformation
- [ ] Tried to put all the lines together then do the split. Haven't figured out yet.



{'fraction_non_alphanumeric': 0.13933547695605572, 'fraction_numerical': 0.03965702036441586, 'mean_word_length': 4.188888888888889, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '4134698', 'n_tokens_mistral': 342, 'n_tokens_neox': 303, 'n_words': 106}