Doubt regarding string format function

a=“indians”
b=“mangoes”
print(“0 love {1}”.format(b))
In the above code,the placeholder is {1} and the number of arguments in format() function is also 1 then why this code is not executing and showing error?