Coding Quiz - Palindrome Check
A palindrome is a word, phrase, number, or other sequence of characters which reads the same backward as forward.
For example, radar, level, rotor are palindromes.
In this coding quiz, you need to write a function that takes a string input from the user and returns True if the string is a palindrome, otherwise returns False.
Code Implementation
def solution(s):
# Write your code here
return
Constraints
-
The input string contains only alphabetic characters and is case-insensitive.
-
Spaces, special characters, and punctuation are not considered.
Examples
-
Input:
"Level" -
Output:
True
-
Input:
"radar" -
Output:
True
Want to learn more?
Join CodeFriends Plus membership or enroll in a course to start your journey.