Print‎ > ‎

Error

>>> name = 'Michael'
>>> age = 25
>>> print(name + ' ' + age)
TypeError: cannot concatenate 'str' and 'int' objects

Solution: number need to be converted into string
>>> print(name + ' ' + str(age))
Michael 25