Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7fa0c61

Browse files
Added Palindrome
Added Palindrome snippet in README.md
1 parent aed59c9 commit 7fa0c61

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

‎README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,3 +445,12 @@ def find_Evenodd(num):
445445
else:
446446
print(num," is an odd")
447447
```
448+
### Palindrome
449+
This function returns "yes" if given string is a palindrome, else "no". Palindrome is a string whose reverse is the string itself.
450+
```python
451+
def isPalindrome(s):
452+
if (s == s[::-1]):
453+
return "yes"
454+
else:
455+
return "no"
456+
```

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /