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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started