WEBVTT

00:00.310 --> 00:01.440
A string function

00:05.170 --> 00:07.410
a string function

00:09.990 --> 00:17.850
string function is a built in function that can be useful if you have a nice string sentence and you

00:17.850 --> 00:26.090
have an integer number and you want to print them all together as a string to be in one sentence.

00:26.640 --> 00:28.650
Let's see how.

00:29.820 --> 00:30.380
All right.

00:30.510 --> 00:39.360
So now go to brackets and create a new variable such as my name on the sign with the string sentence

00:39.900 --> 00:40.680
for example.

00:40.680 --> 00:48.440
Hello my name is Jeff and my age is then create an integer variable.

00:48.440 --> 00:52.910
For example age and assigning line on the initial.

00:53.520 --> 00:57.420
As we mentioned before anywhere means whole numbers

01:03.690 --> 01:08.990
create a variable pole total and assign it by the variables.

01:09.060 --> 01:18.730
My name plus age the imprint total save the file and try it on terminal and see what the.

01:30.440 --> 01:32.450
As you can see here in the terminal.

01:32.630 --> 01:41.390
It shows an error that asks to make the variable age to be on a string and printed will.

01:41.840 --> 01:44.490
OK so let's fix that.

01:44.510 --> 01:52.040
So as you can see here 32 is an integer to print that as in the string.

01:52.160 --> 02:02.360
We should put TR Before age and put the age variable between the brackets or inside the brackets after

02:02.360 --> 02:02.740
that.

02:02.750 --> 02:07.860
Save the file and try on terminal now.

02:08.330 --> 02:09.680
Very nice.

02:09.680 --> 02:16.230
It works well way now and it displays the 32 integer as a string.

02:16.580 --> 02:23.820
So our function is very helpful to convert integers to string.

02:24.620 --> 02:25.730
Thanks for watching.
