Answer to Question #180146 in Python for vijay

Question #180146

Given a sentence, write a program to mix the words based on their index locations. The first word in the output should contain the first letter of each word in the given sentence and the second word should contain the second letter of each word in the given sentence and so on.


Note: The nth word in the output should contain nth letter of each word in the given sentence. The letters of the output word should be in same order as the words in the given sentence. If a word in the given sentence doesn't have n-letters, you can skip it while considering the letters of the n-th word.Input


The input will be a single line containing a string.Output


The output should be a single line containing the words by mixing based on their index locations.

Sample Input 1

Welcome to your first problem

Sample Output 1

Wtyfp eooir luro crsb otl me em


1
Expert's answer
2021-04-10T12:23:40-0400
Dear vijay, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

Latha
25.05.21, 11:29

The above code will be display only ' Wtyfp'. The actual output will be 'Wtyfp eooir luro crsb otl me em'.

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS