Python Palindrome Program for Beginners | Strings and Integers | by OsChannel

preview_player
Показать описание
#Python_Palindrome #Palindrome_String #Palindrome_Number


A palindrome is a string which is same read forward or backwards.
This video is for Python Beginners.
In this video we learn, how to write a python3 palindrome function to check if a given string or an integer is a palindrome. We discuss a corner case for Integer Palindrome and how to overcome this.
Basically integers are not subscriptable and hence they give an this error: "TypeError: 'int' object is not subscriptable. So we are converting them into a string before checking if they are a Palindrome.


Other Similar videos:
1] cd command hacks:

PLAYLIST WITH SIMILAR VIDEOS:

Subscribe to OsChannel for more such tricks -
CHANNEL LINK:

LINK TO MY WEBSITE:

Follow OsChannel on Social Media:
Рекомендации по теме