In this exercise, you will work with strings and string formatting.

Requested

Write a program that reads a sentence, extracts the name of the person and the code word from it, and displays them as shown in the example below. You can assume that the magic word will always be enclosed in double quotation marks (“) and that the sentence will always have the same structure.

Examples

Below are some sample executions of the assignment. The text in red represents user input and will logically not be printed by your program.

Example 1

Geef de zin die het toverwoord bevat.
Mijn naam is Jan en mijn toverwoord is "wovertoord".
Het toverwoord van Jan is "wovertoord". De lengte van het toverwoord is 9 letters.

Example 2

Geef de zin die het toverwoord bevat.
Mijn naam is Emma en mijn toverwoord is "programmeren".
Het toverwoord van Emma is "programmeren". De lengte van het toverwoord is 12 letters.

Notes and tips