[Tutor] Concatenation

Gibson Green green_gibson at yahoo.com
Fri Aug 19 08:42:11 EDT 2022


How can I concatenation a string statement with an integer? For example: Congratulations, you are now 24 years old. Age variables was declared and converted to an integer. 
I have:
  print ( ‘ Congratulations, you are now’ + age+ ‘ years old’)

Had an error about concatenation between integer and strings . Please  help. Thanks.

Gibson.




More information about the Tutor mailing list