Write a python code to check if the given sentence is palindrome or not
AnswerBot
1y
Python code to check if a sentence is palindrome or not
Remove all spaces and convert to lowercase
Reverse the string and compare with original
If both are same, then it is a palindrome
Help your peers!
Add answer anonymously...
Popular interview questions of Data Analyst Intern
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app