Skip to content

Instantly share code, notes, and snippets.

@Ghanshyamkr93
Last active June 27, 2019 13:03
Show Gist options
  • Save Ghanshyamkr93/b6834bedd35b9da70ca68905c3378e6a to your computer and use it in GitHub Desktop.
Save Ghanshyamkr93/b6834bedd35b9da70ca68905c3378e6a to your computer and use it in GitHub Desktop.
Practice Python Code for Beginners
#Palindrome
string = input("Enter a word: ")
reverse = string[::-1]
if string==reverse:
print("Palindrome")
else:
print("Not Palindrome")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment