00:01
Let us have a look at the breakdown that we are going to follow in this question.
00:07
We are going to write a palindrome code.
00:09
The first thing we will do is we will have a line that take and stores input.
00:19
So we will have this user input equal to input.
00:26
So this line takes the user input and stores it in the variable that is user input.
00:33
Now we have to take another line which will process the user input and this should be this will split the input into a list of words.
00:46
So we will take user input palindrome that will be input without basis.
01:04
So as you can see this is the split this splits the user input into a list of words effectively removing the spaces.
01:15
So for example if the input is never odd or even then it will split into never odd or an even.
01:26
So if we join this that is if we if we join the list of words back then then it will give us a list of words that will join back together.
01:40
So this is that it's that it will join together into a single string that is that will not be having any spaces.
01:50
Then again we'll convert it into a resulting string so that it gives us all in lowercase and we can reverse it and without reverse it and check the palindrome result.
02:03
So to get a better gist of this let us have a look at it in a compiler.
02:10
So we'll start our code by the get input method as i just explained.
02:17
So we have used the user input without spaces.
02:23
We have used that and we have used join without split.
02:27
So in this line we process the user input and here is what will happen.
02:32
We'll use that and we'll take it further.
02:42
We'll check it further.
02:47
We will list ahead in this line.
02:51
So let us look at it properly.
02:54
Now that now we use input without spaces...