Question: Python Programming - I've attached the code that includes in Test data the input and output I needed to get. I got the code to

Python Programming - I've attached the code that includes in Test data the input and output I needed to get. I got the code to do do all three strings mentioned in the output. Problem is if someone enters input mATT dAmon , then the output should Matt Damon. I cannot get my code to do this( and this is what I need my code to do as well as do the three strings in the output showed in the image). Please provide source code and block comments to explain the code. Thanks.

Python Programming - I've attached the code that includes in Test data

Test data: 13 14 15 16 17 1 8 19 20 21 input: 'the quick brown dog'Now is the time for all good men And to all a good night' output:'The Quick Brown Dog 'Now is the Time For All Good Men And to All A Good Night' Params: s (string) Returns: (3 strings) IF FT 23 2 4 25 26 27 28 29 30 31 32 string-input ('Enter a string: ') ' . join (s [ 0] . upper ( ) s [ 1 : ] for s in string. split ( ' ' ) ) tempString = ' result = "" + for word in tempString.split (): if i = 0: elif (len(word)-1): elif (len(word)-2): elif (word--''And" or word == "The" or word =_ "Not" ): else: result-result + word + "" 3 4 35 36 37 38 39 40 41 4 2 4 3 result = result + word . upper() + " " result - result+ word.lower +"" result- result +word.lower )+ "" result-result+ word+"" 1 I print (" ") 4 5 print (result) test test uppercase checkerboard checkerboard checkerboard uppercase And to All A Good Night

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!