Replace ADJECTIVE/NOUN/VERB placeholders.
Read 4 lines: a template, then three replacement words for ADJECTIVE, NOUN, VERB (in that order).
Replace the first occurrence of each placeholder in the template with the matching word. Print the result.
Test input:
The ADJECTIVE panda walked to the NOUN and then VERB.
silly
chandelier
screamed
Expected output: The silly panda walked to the chandelier and then screamed.
Sign in to save your code and track progress across devices.