<commit_before><commit_msg>zman7895 created turtle logic exercise post<commit_after>---
layout: post
author: zman7895
title: "zman7895's Turtle Logic Exercise"
---

Below is the embedded turtle trinket exercise.
<iframe src="https://trinket.io/embed/python/fae20eb8af" width="100%" height="600" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen></iframe>

This one I debated far longer about what I wanted to do with this exercise than the previous game I made. I guess you could say I wasn't as passionate about this one, and it might show in the level of detail. However, I did eventually feel like I tested out the things we were supposed to utilize. I will also say my go at this exercise lacked the aha moments of the past. This might indicate I didn't challenge myself enough. However, there were a couple of parts I did have to think through, and either figured out after a tiny bit, or I eventually found an alternate route that didn't completely satisfy me, but would work.


The first example of one of these moments was deciding on the increments of my boolean logic. I wanted to include a wide range of temperatures and match them with gender in order to give a result. However, it quickly became clear that I would have to cover all ranges, and always include gender to get the result. For example, I wanted to have one range (a range of cold temperatures) where it didn't matter if you put you were male or female, you got the same result. However, without indicating male or female, it screwed up the iteration of going through the original if statements. The second biggest issue I faced was figuring out how to only accept M or F for the gender. I learned how to downcase so it would accept both M or F and m or f within the if statements. But, it still accepts any other letter during the input and will just make it false all the way through my conditionals. I assume there is away to say it can only accept those specific string inputs, but I was unable to figure it out using a similar method to only accepting numbers when the variable type is a float. I will ask about this after class tomorrow.


Ultimately, I think this exercise fulfills the prompt, but due to time constraints and a few other things I had to do this evening, I didn't get to throw my entire mind and heart into this exercise, and so I am not as thrilled about it as I was past exercises. 
{'fraction_non_alphanumeric': 0.03838130997079683, 'fraction_numerical': 0.010012515644555695, 'mean_word_length': 4.3053097345132745, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, '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': '4228227', 'n_tokens_mistral': 592, 'n_tokens_neox': 553, 'n_words': 413}