00:01
Okay, so this one says, write a program to input a number and count the number of digits.
00:08
The program further checks whether the number contains and all a number to which you need your number and displays the output accordingly.
00:16
Okay, let's do it.
00:17
So we'll get input from the user and we'll say i for input equals input.
00:25
We'll use input the number.
00:33
So we're going to do that and what we're going to do is we're going to say i do.
00:37
So input 2 equals i.
00:40
Place or replace the period with nothing at all because if they input a decimal number, we don't want to add that as a character.
00:50
So for example, if i put 10 .1, i2 now just becomes 101.
00:56
So what we're going to do now? we're just going to count the length of that string.
01:00
So digits equals len, i2.
01:13
So if i put in 100, the link is now three, so that makes sense.
01:21
So let's do that.
01:22
Let's print the length for the number of digits.
01:26
The number of digits is digits.
01:37
But we're going to put digits, of course.
01:41
So 10, the number of digits is two.
01:44
Next thing we want to do is convert it to an in...