 So I now have an exercise for you in Python design a program that calculates out the area of a pentagon No, don't skip. Don't just run away. You know, think about this for a second. This is a very long elaborate mathematical equation. So how what should I do? One thing that I constantly suggest one of the things that whenever something seems so kind of crazy just like this math equation I Like to say, how do you eat an entire elephant? How you do it is one by data time. Yes, it is crazy elaborate. So what do you do? Break it down into the smaller little chunks For example, let's say for our sake. I made a equal 10 of all these different kind of calculations In my case, I'm gonna go ahead and say that I'll handle that one first. That one's very easy So I'll just call it right right equals a square square to Astric astric to now I like to check what I'm doing. So right a Hundred. Ah, that's exactly what I was looking for. But then what? Well, if we come over to the opposite end on the left simple enough One divided by four now, you're probably saying to yourself. Why don't I just put a zero point two five to which I say What happens if it had been zero one over three? At least here the fraction kind of it handles itself We know what it will be But this is just kind of easier cleaner way of writing it and so then we can compare that one as well So I have left and right but now I need to focus on inner and this is why I talked about the math Library just a second ago because all of a sudden what I'm able to do is I'm able to start to implement some of the kind of things inside of there I'm gonna refer to this portion as inner and and inner equals in this case math that sqrt five Now you can go in you can you know hop on your calculator and you see if that's correct, you know arbitrarily speaking 2.2 if I were to kind of Multiply that by two. Yeah, it gives me five. It's a rounding, but we'll approximate So now what well one of the things I'm able to do is this is where? Left-to-right association kicks in I've made this variable inner well I can expand on it as you can see the next step is I need to take whatever was the square root of 5 my 2.2 and Multiply by 2 so I can come in and I say inner Equals inner times 2 Now what does this do left-to-right association kicks in this gets evaluated first What is inner inner is 2.2? Multiply by 2 that gives me 4.4 that Now it's assigned or reassigned to inner And if I take a look at inner that's exactly what I should see a 4.4 7 We can do the exact same thing again as you can see sort of the color coding is starting to make sense Oh, okay, I'd multiplied so the next step is obviously I add five All right. Well, I come in instead of doing multiplied by 2. I just say add by 5. Oh Oh inner well of 4.4 plus 5 gives me a 9. Okay I'm starting to get this because you see the next one is Multiplied by 5. All right, instead of adding by 5. I multiply by 5 and You know inner Should be like 9.4 times 5 9 times 5 roughly about 45 47 I'm in the same ballpark. You know, I don't need to know 100% what the answer is I just need to know that I'm roughly close enough to it now. Finally, we eat the last little bit Inner equals and instead of it being a math equation I'm able to come in and go math that sqrt just like I did before And So this all of a sudden will give me Some weird crazy 6.88 number and I can then in turn take this and say left times Inner times right and what this should give me is a hundred seventy two point four something How do I know that I'm telling the truth? How how do I know that I did this correctly? Well, wouldn't it just be dandy if I was able to hop on the Google's area of Pentagon Oh, hey, what's the side of a? 10 Look, what do you know we happen to be pretty much right?