Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Python/Program-3/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Program 3

Write a program to check whether the string is palindrome or not

Variable description--
a=Holds the input string
b=Holds the reverse of the string
8 changes: 8 additions & 0 deletions Python/Program-3/program.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@


a=input()
b=a[::-1] #String is reversed and stored in b
if (a==b): # If a and b both are equal string is Palindrome
print("String is Palindrome")
else:
print("String is not Palindrome")