I was just wondering what the bests way to include variables in printed-lines.
For example would it be better to do:
print("The cost will be $" + str(cost) + ".")
or
print("The cost will be ${}.".format(cost))
Thanks, David
P.S. when explaining, note that I am new at programming in general, thanks :D