A string function
a string function
string function is a built in function that can be useful if you have a nice string sentence and you
have an integer number and you want to print them all together as a string to be in one sentence.
Let's see how.
All right.
So now go to brackets and create a new variable such as my name on the sign with the string sentence
for example.
Hello my name is Jeff and my age is then create an integer variable.
For example age and assigning line on the initial.
As we mentioned before anywhere means whole numbers
create a variable pole total and assign it by the variables.
My name plus age the imprint total save the file and try it on terminal and see what the.
As you can see here in the terminal.
It shows an error that asks to make the variable age to be on a string and printed will.
OK so let's fix that.
So as you can see here 32 is an integer to print that as in the string.
We should put TR Before age and put the age variable between the brackets or inside the brackets after
that.
Save the file and try on terminal now.
Very nice.
It works well way now and it displays the 32 integer as a string.
So our function is very helpful to convert integers to string.
Thanks for watching.