So I hope you get familiar, but you bring a notebook because it's a really amazing tool.
So the last thing actually I want to show you is how you can autocomplete, how you can get the documentation,
how you can see what the methods are available in.
Aside from Jubilo, a notebook.
Before we do that, let's just clean the output here and see how that works.
Right.
Remember, you can just mark everything like pressing, marking the first cell holding shift and moving
all the way down.
And then you can actually use this scissor in order to cut it all away.
Really, really nice.
So let's start here with some code here.
So what I wanted to show here, actually how to use our completion.
So let's say we had a function here.
If you're not familiar about how do how you do that, then don't worry.
Well, covered in the crash course here, but just go with bear with me here.
My function just takes X and it prints out X.
Oh, I put a capital X here.
I'm happy you notice that.
So shift enter and then we have my function.
So if you write my underscore, for instance, and press here, it all completes by itself.
Right.
Isn't that nice.
So let's try to put 23 here and then execute this one by shift.
Enter and you see it prints out twenty three.
So that's how you are complete is by pressing tab.
So let's assume that we have your string here, a string here called this is fun and we execute that.
So now we have signed the string to or as this is fun to S and now S is a string object.
So if you press type S and DOT, you will be able to access all access all the methods that a string
has and you can find all those by pressing tab.
So here's how you can get capitalized, Kaysville Center and all the functions available here.
Let's just try this one and see what happens here.
Let's execute that one.
Actually, I think what it does, it capsulizes the first letter, let's try to see that actually it
uses one.
Yes, as you see here, it does it if we didn't execute this one, if we execute this one again, remember,
now we have welfare.
We don't execute this one.
And we see what's inside here.
You see here, this is one was small.
And if you use this one here again, it will be with capital.
Right.
You see here it's capital.
And here it is not maybe you're a bit confused about this one, actually, and you're just like, what
is it inside here?
Then you can use shift tap.
And what it does is actually it it tells you the documentation, it gives you the documentation of that
method.
In this case, it's capsulize, which honestly, I never really use that function.
So I didn't really know for sure what it did, but I could have used shift tap inside here to see what
it does, return a capitalized version of the string.
So it actually returns the string so it doesn't capitalized the actual string, if I understand this
correctly.
Right.
So if you actually execute this one here, it is still lowercase, as you see here, while if I assign
a new one here as one here, execute here and we execute as one down here, it is capitalized.
Right.
While still this one, the original string is still in lowercase.
OK, so that's really nice.
So now we have it right.
We have our completion with TAB itself.
And if you have a and if you use for instance, here, we could use another function here.
You can also use tab and then you get all all the functions available or methods available on the object
here.
And finally you could use it to get the documentation.
Let's let's just find something here.
Like something lower is probably the same.
You could have replace here.
So here you have it.
Right.
So you can see you need to know I took it away.
So you have you take the old thing and you the new thing and how many times you want to replace it.
So you can you actually.
Yeah.
You can actually plus it here and then you get the full full documentation here.
Right.
So you have to count here.
If you said the maximum number of occurrences to replace minus one is the default value means replace
all occurrences.
So for instance, if we wanted to replace let's say now I forgot again.
Is that the old one first?
It is.
I know, but let's say I forgot it.
Then I'd use shift type again here.
Then we say we want to replace we want to replace space and we want to replace that with, let's say,
a dash here.
And then we execute that by default.
We don't need the the final value because it's default.
It will replace all occurrences.
So let's execute that by shift.
Enter and let's go down as one here.
And then we can see it has a dash here instead of the space here, while the original one here is still
the same.
And if we put here, actually if we set one here, it will only replace one occurrence here, as you
see down here, only one occurrence here.
So you see how easy that is.
And you can get the documentation like that.
This is really, really amazing.
And I use it all the time because honestly, when you're a programmer, you don't remember all the details
of every function unless you use them on a daily basis.
And actually some are so complex that.
Yeah, does it bother to remember them?
No, not really.
As a programmer, you just, you know how to find things and we've done it before.
It's easier to get into it.
So you don't have to read all the details.
But I still I still use documentation all the time.
And I think actually it's really nice to introduce a notebook how you easily can access the documentation.
That was actually what I wanted to show and this one.
So thank you for listening.