It's preferred to use the format() function, e.g. print("\nProgram started at {}".format(t))