 Now one of the things that we really enjoy Kind of handling is this idea of string formatting, you know say for example my user typed in Adam. It's a good name At least I think so, but maybe they didn't do it as a capital ADAM. Maybe they went crazy with it And they did all lowercase They did like that Or they go all uppercase. They're very angry. They don't know how to turn off their caps lock Or they're going all leech-speakie and they got like Capital of these but all they're about vowels or lowercase or something like that Well, this becomes a very big issue on a programming side because each one of those is not equal to each other Especially when we're trying to do something like equals equals So what I can do all of a sudden is I can say something like name dot lower and now no matter what they type in Everything just gets converted into lower cases which in turn I can then in turn Check to see if it equals Lower cases same thing I have upper But really when this becomes very beneficial is when I have to say format numbers You see let's think about pi for a second Pi is a big number 3.141592653589793 Big number So what happens well, I don't want to have to sort of display that every single time I'm working with my my Numbers so let's say for example, I do take that and I am going to blatantly cheat because no I do not Know the numbers off the top my head Do the you know the 100th whatever degree? That's why a program. It's easier that way. I can make the computer do it for me So I've got this variable X now all of a sudden So one of the things that we can do is we have this Function now instead of it being sort of its own function where I type in and put something in parentheses instead all of a sudden I can actually use this with strings as you can see one of the things that I can do is I can come in with my print statement again I always like to build my structures first and One of the things I can do is I can put in these curly braces the curly braces are Python's way of indicating this is where I want you to start the formatting if I hit enter right now. I see nothing However by going in and then typing dot format Suddenly Python is Understanding and it's going to say okay. Well, what do you want inside of those parentheses in my case can leave that there I'm gonna go ahead and say X Soon as I hit enter you see all of a sudden I get X plus or X colon all my numbers Okay, but again, you know, that's not very user-friendly. That's kind of a very long Number most users don't really like That many numbers and that's where we get into this idea of formatting now The first thing I have to do is I started off with I want to format the number I put in the colon now if I don't do anything else Stay saying However, if I come in here, and I'm gonna immediately skip over field with for a second and I'm gonna go into that idea of precision Now if I go dot to F Now what dot to F is indicating is the F is saying that it is a floating point number and I only want to see Two decimal places from that number and if I hit enter What do you know I get all of a sudden three point one four So why the nine well the nine suddenly just like it says it's a field with and so if I put in a nine All of a sudden then when I hit enter you see that nine spaces are being taken up before one two three four Spaces were being taken now all of a sudden kind of mirroring it one two three four five six seven eight Nine spaces are being taken care of So what about that a nice little kind of right over there that little questionnaire experiment? What does that do? Well, let's start off with I'm gonna put a Little pipe here just a pipe to indicate the end of my string. Okay, fair enough. Well, I'll come in Change this to a 25. We already know that that just means I'm gonna get more spacing Which I do but then let's just see what happens when I put that carrot in the front That's a carrot there. Oh Look at that. It centers it actually that's pretty nice Same kind of concept can go in just to see it if I go and hit the greater than symbol in there Says to make it right aligned by hit the left some though less than symbol Make it left a lot simple enough, but what about that dash right afterwards or right before that? Well, the dash allows me to say what is my trailing Thing and right now it's spaces But if I say dash all of a sudden it becomes dashes if I say for example put a period there It's a period if I come in and I put the pound sign Where are you there you are it's pounds on it So it just allows me to kind of do a little bit more formatting with my numbers