WEBVTT

00:01.020 --> 00:08.880
Next question is, are you take the Intisar number in as input and bring the result as below using strings

00:08.880 --> 00:10.140
and without strings.

00:10.830 --> 00:16.380
So the numbers printed in sequence from zero to in for an equal to five.

00:16.920 --> 00:21.750
So you will have to print zero one, two, three, four, five.

00:21.990 --> 00:25.380
If there are six numbers, you print zero one, two, three, four, five, six.

00:25.650 --> 00:27.630
Without any space between them.

00:28.260 --> 00:31.110
So you can post a video and then try this.

00:31.320 --> 00:34.560
I will tell the solution after the box.

00:45.780 --> 00:52.170
So to solve this particular problem, you can simply take the number as input as we have already seen,

00:52.170 --> 00:55.440
how we take numbers as input, you can use the same method.

00:55.800 --> 01:01.530
I will be using the number, but even so, let's say in is equal to 20.

01:05.370 --> 01:07.500
We can simply print,

01:10.380 --> 01:13.530
I want numbers from zero till end.

01:13.830 --> 01:19.380
So I want numbers from zero to a particular number store for taking a particular range, I can simply

01:19.380 --> 01:20.760
use the function range.

01:21.210 --> 01:25.650
So I see a range and I want the number to start from zero.

01:25.830 --> 01:29.250
So I can dive the right the number which I want to go up into.

01:29.250 --> 01:30.120
I see 20.

01:30.570 --> 01:36.240
And for this, what I want to have is I want to print.

01:37.320 --> 01:41.850
And I want to join these numbers with a separator.

01:42.390 --> 01:48.990
So when I have these numbers, it will generate a number zero, one, two, three, four, one by one.

01:49.500 --> 01:54.880
So if I want to get these number out of this, I can simply see a star.

01:55.920 --> 01:57.360
So let's print this first.

01:58.200 --> 02:05.010
So you can see I am getting these numbers that now I don't want to go up, build 20, but I want to

02:05.010 --> 02:06.510
go up to twenty plus one.

02:06.870 --> 02:08.880
So I will save plus one here.

02:14.170 --> 02:19.300
So now I can go to 20 now, these are numbers, but the space is still there.

02:19.570 --> 02:24.840
So I want to join these numbers using the double space.

02:24.850 --> 02:32.860
I want to remove the space so I can simply say separator, and this operator could be nothing.

02:33.190 --> 02:36.430
So if we run this, we simply get the result like this.

02:37.010 --> 02:42.820
OK, so you can see print function itself has this option.

02:43.150 --> 02:47.710
So you can see the same in the health of print.

02:50.350 --> 02:55.090
It takes different values separated by commas.

02:55.480 --> 02:58.060
It takes a separate door, which we have just given.

02:58.450 --> 03:00.880
Apart from that, it takes in.

03:01.210 --> 03:08.410
So if we want to create and or we want to create a new line so we can use this.

03:08.650 --> 03:17.080
So if in case you don't want to change your mind after every print statement, you can simply see you

03:17.080 --> 03:18.460
can simply remove this.

03:18.460 --> 03:21.700
You can see and equal to nothing.

03:21.880 --> 03:25.000
So in that case, it will not change the line for you.
