Code used in video:
Python program to check if string is Palindrome
take inputs
string = input('Enter the string: ')
find reverse of string
reverse = str(string)[::-1]
compare reverse to original string
if(reverse == string):
print(string,'is a Palindrome')
else:
print(string,'is not a Palindrome')
#shorts #shortvideo #python #beginners #trending #youtube #youtubeshorts
On this page of the site you can watch the video online Palindrome String | Python Program with a duration of hours minute second in good quality, which was uploaded by the user Hypertext Assassins 30 January 2022, share the link with friends and acquaintances, this video has already been watched 231 times on youtube and it was liked by 6 viewers. Enjoy your viewing!