hi how's it in this video we're going to learn how to reverse a string and create a basic program that gets a string input by a user and checks if that string is a palindrome a palindrome is a sequence of characters that reads the same forward and backwards so first off we have to find a way to reverse a string now python doesn't have a built-in method to reverse the string so what we can do is slice the string and return reverse version of it slicing is extracting characters by specifying a range we do that by using square brackets where we can specify a start a finish and the step separated by a colon a step is just how many characters we move between each character we can also leave the range blank this will default to start at index zero finishing the slice at the last character index and using the step as well one meaning moving one character at a time to reverse the string we have to leave the start and finish as default but include1 as the step this will cause the slice to move backwards from Finish to start to create our program we're first going to ask for user input and store that input in a original variable after that we'll reverse the original string and store it in this revers string variable now that we have our original and reversed string we can create a conditional if statement to compare the original string to the reverse string and if they are equal we'll print out that yes the original string is a ping Dr else it's not so uh let's copy this uh print statement so we asked the user for input reverse the original screen and then we used an if statement to handle the condition whether it's true uh the original string and the reverse string are equal now we can run our program then type in m and yeah so it works and now we can try out um another string and it works um let's try it again with a different number and it works now let's try out um weing code and it works so to recap we got um the original string from a user and then we reversed that string then we created a conditional statement to handle the condition if the original and reverse string are true or not and that's that if you found this video helpful please like if you want more please subscribe thank you for watching