- You are given some text in form of a string, with some words that need to be substituted. The words and the substitutes are provided in a dictionary. Give the output text with all the substitutions made.
Dictionary = [x: "Hello", y: "Hello @x"]
text = "Hello @x @y"
Output = "Hello Hello Hello Hello"
- Behavioural questions