Question: python Assume you have a string of mixed-case words separated by a dash (e.g. Hello-TheRE-SMILE), but there is a piece of software that only accepts
Assume you have a string of mixed-case words separated by a dash (e.g. "Hello-TheRE-SMILE"), but there is a piece of software that only accepts lower-case comma-separated values (eg, "hello there,smile"). How can we reformat our string so that it can be accepted by this software? You can only use the string methods discussed in the last 3 questions, -- No loops are necessary! Suppose the string is saved in a variable named the string : >>> the_string = "Hello-TheRE-SMILE" >>> the_string - >>> temp - the_string. >>> the_string = >>> the_string "hello, there, smile
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
