Let’s start off with a simple and common problem: Palindrome String.
A string is considered palindrome if it stays same upon reversing it. For example ‘racecar’. Can you write a code that takes input of a string and checks if its palindrome or not?
Before we start off with the coding section, let’s understand the logic in the following video.
Let’s move to the console and see how we convert the pseudocode to a code in Python.
It is now your turn to try it out. Note that you can do it by some other methods too. Hence, we encourage you to design multiple approaches to the same problem.