phrase = "This is amazing"
print("How many characters in the variable phrase " + len(phrase) + "this are the numbers")
It says that can only concatenate str (not "int") to str
phrase = "This is amazing"
print("How many characters in the variable phrase " + len(phrase) + "this are the numbers")
It says that can only concatenate str (not "int") to str
The case is that you can't concatenate string with integer, since len(phrase) returns the length from phrase that is why you are getting that error. So you cant convert the integer number to string and then concatenate in this way:
phrase = "This is amazing"
print("How many characters in the variable phrase " + str(len(phrase)) + "this are the numbers").
I suggest to use join function for better result when you concatenate strings