len('hello' len('my very energetic monster just scarfed nachos ' len('' just like those exampleslen(mynameevaluates to an integer it is then passed to print(to be displayed on the screen the print(function allows you to pass it either integer values or string valuesbut notice the error that shows up when you type the following into the interactive shellprint(' am years old 'traceback (most recent call last)file ""line in print(' am years old 'typeerrorcan only concatenate str (not "int"to str the print(function isn' causing that errorbut rather it' the expression you tried to pass to print(you get the same error message if you type the expression into the interactive shell on its own ' am years old traceback (most recent call last)file ""line in ' am years old typeerrorcan only concatenate str (not "int"to str python gives an error because the operator can only be used to add two integers together or concatenate two strings you can' add an integer to stringbecause this is ungrammatical in python you can fix this by using string version of the integer insteadas explained in the next section the str()int()and float(functions if you want to concatenate an integer such as with string to pass to print()you'll need to get the value ' 'which is the string form of the str(function can be passed an integer value and will evaluate to string value version of the integeras followsstr( ' print(' am str( years old ' am years old python basics