Question: Write a program that reads a word, compares the first and second half of the word, and prints first and second half same or first
Write a program that reads a word, compares the first and second half of the word, and prints “first and second half same” or “first and second half different”. If the length of the word is odd, ignore the middle letter.
Step by Step Solution
3.58 Rating (151 Votes )
There are 3 Steps involved in it
Here is one way to write a Python program to solve the problem I will use Pythons slicing feature to ... View full answer
Get step-by-step solutions from verified subject matter experts
