In most programs that we build with Python,
those are not really visually pleasing.
Those are either terminal based or these kinds of a notebook based.
So there are no really graphical user interfaces.
So writing in a good format is a really good information for the user.
And they did something correctly or wrongly.
Okay.
So that there is a python built in function called format
that allows us to actually modify the string
to make it more plausible for reading and for us as a program
is to make to shorten out the way that we are actually modifying that string.
So if I have a name, let's say Alice,
and we have age of 29
and then I have a string that goes,
my name is then last name
and then
plus I am
then plus a str of age
years old.
Now this works
if you put plus here.
Now this works.
But you see how many pluses and stuff you need to do.
Well, this is not really pleasing.
So if I take a look at this and redefine into it,
my name is and then use curly brackets.
And I am curly brackets
years old.
After that I can use format
and then provide name and age
and with this
in actually convert it to string the age one.
So you can just write it out and get the same result as you would with other.
So this is more clean and you can visually see what's going to be at the end.
Okay.
So next thing that you need to add information to your strings,
this is how to do it.