What is wrong in this piece of code?
dic = { \'fruit\': \'apple\', \'place\':\'table\' } test = \"I have one {fruit} on the {place}.\".format(dic) print(test) &
Should be
test = "I have one {fruit} on the {place}.".format(**dic)
Note the **. format() does not accept a single dictionary, but rather keyword arguments.