JHart9
3/6/2017 - 5:11 PM

Three ways to print a string and variables in Python

Three ways to print a string and variables in Python

print "My name is" + first + " " + last
print "My name is", first, last
print "My name is {} {}".format(first, last)