Formatting with String Methods


#1

Hello. I am on the lesson "Formatting with String methods, putting form in the Formatter." I have a question about this: When you are doing the capitalizing, do you have to assign the answer to the variable "answer2"? Or can I stick with "answer"?


#2

Good question. It depends on the whether you wish to preserve the original inputs, or not. If not, then the in-place method is a suitable approach, but if so, then a secondary variable will be needed to hold the capitalized text.