Question 5
The following Python code snippet generates the output on the terminal.
from string import Templategreet_template = Template('Hello, $name! Welcome to $place.')
greeting1 = greet_template.substitute(name='Alice', place='Wonderland')print(greeting1)
data = dict(name='Bob')greeting2 = greet_template.safe_substitute(data)print(greeting2)
greeting3 = greet_template.substitute(data)print(greeting3)Which of the following is the correct output?