Skip to main content
Practice

coding-quiz-1

---
id: coding-quiz-1
title: Coding Quiz - Palindrome Check
description: Write a function to determine if a given string is a palindrome.
tags:
- Coding Quiz
- Palindrome
- Python
- Practical
sidebar_position: 1
isPublic: false
---

# 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`.

<br />

```python title="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.