top of page
learn_data_science.jpg

Data Scientist Program

 

Free Online Data Science Training for Complete Beginners.
 


No prior coding knowledge required!

Palindrome Checker

Writer: Hamza KhalidHamza Khalid

This is my task # 02 for the first assignment which is not from the task list uploaded in Google Classroom.

 

Program Description: User will enter the string and the program will check whether the string and its reverse are same or not which is called Palindrome.

For Example:

- madam and its reverse madam both are same so this is a Palindrome.

- water and its reverse retaw both are different so this is not a Palindrome.

 

Code Description:

- User enters a string.

- Make the string into lower case so its reverse would also be in lower case and it would be easy.

- Then used reversed function to reverse the string.

- Then using if condition and putting both string and its reverse into separate lists and check the letters if the reverse and its string are same or not.

- If string is same the program will print "Palindrome." else it will print "Not a Palindrome."

 

Code Is Attached Below as a snip of Jupyter Notebook.


 

Thankyou.


Regards,

Hamza Khalid

 
 

Comments


COURSES, PROGRAMS & CERTIFICATIONS

 

Advanced Business Analytics Specialization

Applied Data Science with Python (University of Michigan)

Data Analyst Professional Certificate (IBM)

Data Science Professional Certificate (IBM)

Data Science Specialization (John Hopkins University)

Data Science with Python Certification Training 

Data Scientist Career Path

Data Scientist Nano Degree Program

Data Scientist Program

Deep Learning Specialization

Machine Learning Course (Andrew Ng @ Stanford)

Machine Learning, Data Science and Deep Learning

Machine Learning Specialization (University of Washington)

Master Python for Data Science

Mathematics for Machine Learning (Imperial College London)

Programming with Python

Python for Everybody Specialization (University of Michigan)

Python Machine Learning Certification Training

Reinforcement Learning Specialization (University of Alberta)

Join our mailing list

Data Insight participates in affiliate programs and may sometimes get a commission through purchases made through our links without any additional cost to our visitors.

bottom of page