Codington
0 of 6 problems solved • 0%

Exercise prompt

Repair a Search Key

The replace method substitutes one piece of text throughout a string. Save the returned text when a later step needs it.

Example

line = "north/east/west" print(line.replace("/", " + ")) # north + east + west

Both slashes change, while the characters between them stay in order.

Your task

Repair the starter so search_key is lowercase with each underscore replaced by a single space. Keep raw_key unchanged.