next up previous
Next: Making Python interpret the Up: A Second Python Program: Previous: Using the correct type

"Adding" strings

You can combine strings using the + sign. This process is also called "concatenating" strings. Try adding two new statements:

  output = "Your age is " + age
  print(output)
(Perhaps you also noticed that for readability we added an extra space here to go between is and the age.)



Carleton DeTar 2017-08-10