Practice Python

Beginner Python exercises

19 March 2014

String Lists Solutions

Exercise 6

Ask the user for a string and print out whether this string is a palindrome or not. (A palindrome is a string that reads the same forwards and backwards.)

Sample solution

A sample solution using string reversal

A sample solution using for loops

Enjoying Practice Python?

Explore Yubico
Explore Yubico
comments powered by Disqus