I have written some code to count the number of upper case letters in a string and the last line will not work?
I am trying to print a statement that concatenates a line of text and an integer variable:
print ("The number of upper case letters are: " + upper)
When I run the code it give me the following error:
Traceback (most recent call last):
File "C:\Users\Emma\Desktop\Test", line 36, in <module>
print ("The number of upper case letters are: " + upper)
TypeError: Can't convert 'int' object to str implicitly
Any help would be gratefully received.