geekcomputers / geekcomputers/Python

Python Program for string palindrome

Open
#1,257 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
35.4k
Forks
12.9k
Avg merge
2h 37m
Merged PRs (30d)
1

Description

function to check string is

palindrome or not

def isPalindrome(s):

     

    # Using predefined function to

    # reverse to string print(s)

    rev = ''.join(reversed(s))

 

    # Checking if both string are

    # equal or not

    if (s == rev):

        return True

    return False

 

main function

s = "malayalam"

ans = isPalindrome(s)

 

if (ans):

    print("Yes")

else:

    print("No")

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file, test, or entry point is named. First inspect the repository structure and existing Python examples, then determine whether this palindrome program belongs there and what repository conventions it should follow; done means the intended example is added in the appropriate location.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Feature
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.