question # 3\nmultiple choice\nwhat is the missing line of code?\n>>> answer = \happy birthday\\n>>>\nhappy…

question # 3\nmultiple choice\nwhat is the missing line of code?\n>>> answer = \happy birthday\\n>>>\nhappy birthday\nanswer.capitalize()\nupper(answer)\ncapitalize(answer)\nanswer.upper()

question # 3\nmultiple choice\nwhat is the missing line of code?\n>>> answer = \happy birthday\\n>>>\nhappy birthday\nanswer.capitalize()\nupper(answer)\ncapitalize(answer)\nanswer.upper()

Answer

Brief Explanations:

In Python, the capitalize() method on a string object makes the first character of the string uppercase and the rest lowercase. Here, the initial string "happy birthday" needs to be changed to "Happy birthday", which is achieved by using the capitalize() method as an instance - method on the answer string object. The upper() method makes all characters in the string uppercase. The other non - instance - method capitalize and upper calls with the string as an argument are incorrect syntax in this context.

Answer:

A. answer.capitalize()