Python Compiler
txt1 = "{0} lucky number is {1}".format("John Doe", 45) txt2 = "{1} lucky number is {0}".format(45, "John Doe") print(txt1) print(txt2)
OUTPUT
John Doe lucky number is 45
John Doe lucky number is 45
×

Save as Private