Question: 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)
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
Get step-by-step solutions from verified subject matter experts
