<commit_before>---
layout: post
author: tsukori
title: "Ch.8 Exercises"
---

Exercise 1: <iframe src="https://trinket.io/embed/python/8ffb171470" width="60%" height="400" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen></iframe>

Exercise 2: <iframe src="https://trinket.io/embed/python/221801ab4c" width="60%" height="400" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen></iframe>

Exercise 3: <iframe src="https://trinket.io/embed/python/29c495d6de" width="60%" height="400" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen></iframe>

Reflection: Trinket wouldn't let me add the mbox-text.txt file so I just used the copy feature from the reading and it let me. I think the phrasing on the 2nd and 3rd exercises confused me but that's probably because I didn't think too much of when the textbook talked about guarding. 
<commit_msg>fix spacing so trinkets load correctly<commit_after>---
layout: post
author: tsukori
title: "Ch.8 Exercises"
---

Exercise 1: 
<iframe src="https://trinket.io/embed/python/8ffb171470" width="60%" height="400" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen></iframe>

Exercise 2: 
<iframe src="https://trinket.io/embed/python/221801ab4c" width="60%" height="400" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen></iframe>

Exercise 3:
<iframe src="https://trinket.io/embed/python/29c495d6de" width="60%" height="400" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen></iframe>

Reflection: Trinket wouldn't let me add the mbox-text.txt file so I just used the copy feature from the reading and it let me. I think the phrasing on the 2nd and 3rd exercises confused me but that's probably because I didn't think too much of when the textbook talked about guarding. 

{'fraction_non_alphanumeric': 0.13244296048970505, 'fraction_numerical': 0.05564830272676683, 'mean_word_length': 5.862595419847328, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 6, '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': '3507398', 'n_tokens_mistral': 644, 'n_tokens_neox': 567, 'n_words': 183}