Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

Python Example Code: Find out string is palindrome or not



Find out string is palindrome or not


Check Whether or Not the Number is a Palindrome in Python

  • Method 1:  Using Simple Iteration.
  • Method 2: Using String Slicing.
  • Method 3: Using Recursion
  • Method 4:  Using Character matching
  • Method 5: Using Character matching updated
  • Method 6: Using Built-in reversed function
  • Method 7:  Building reverse one char at a time
  • Method 8: Using Flag and backward reading
  • Method 9: Bonus using backward slicing
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x