Question 7
The following Python code snippet generates the output on the terminal.
from string import Templates = Template('$name studies at $university')b = {'name': 'Bob'}
out1 = Template('$name studies $subject').safe_substitute(b)print(out1)
out2 = s.substitute(name='Alice', university='Oxford')print(out2)
out3 = Template('$name studies $subject').substitute(b)print(out3)Which of the following is the correct output?