How I can dynamically pass arguments to format function of string, Below is sample, Here my "text" string would be dynamic and it may have n number of dynamic argument, Function will receive a tuple, I want to fit the tuple value in the dynamic locations. But the format function is not working with tuple.
text = "Good {0}, {1} !!!"
def sayHello(*args):
return "Good {0}, {1} !!!".format(args)
print sayHello('Morning', "Tom")