concatenate strings python in variable code example Example: python concatenate strings print “{0} {1} is {2} years old.” format(fname, lname, age)