Question: Exercise #3: (16 points: 8 + 8) 3.1. Write a function in Python, printStringProperties(), with NO LOOPS, which accepts a string from console and: (a)

Exercise #3: (16 points: 8 + 8) 3.1. Write a function in Python, printStringProperties(), with NO LOOPS, which accepts a string from console and: (a) print the characters that have even indexes. (b) print the input string in reverse order. (c) print True if the input string is a palindrome, False otherwise. Note: A palindrome is a string which is same read forward or backwards. For example the string 12321 is a palindrome.

Example:

The input string is => 0123456789

The characters that have even indexes are => 02468

The string in reverse order => 9876543210

The input string is a palindrome => False

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!