Question: Python Help With Code: The sentence And to all a good night should read And to All A Good Night. All the information is listed

Python Help With Code: The sentence "And to all a good night" should read "And to All A Good Night".

All the information is listed in the image provide.

Please provide source code and screenshot /img of output. Thanks. Whoever helps me gets a thumbs up and a lot of appreciation.

Python Help With Code: The sentence "And to all a good night"

should read "And to All A Good Night". All the information is

def capitalizeStr ): "" "To take user input and print out that string in the Title Case. That is, the first letter of each word is uppercase and the remainder of the word is lowercase.If the entire word is two letters long, the entire word is lower case. The three letter words "and, " "the," and "not" are all lowercase while all other three letter words are capitalized. The first word in the string is capitalized, no matter how long it is Test data: input: 'the quick brown dogNow 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) TnII 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)

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!