What is wrong here?



File "python", line 5
print .upper()my_string
Codeacademy also says "it looks like nothing was printed to your console!"
SyntaxError: invalid syntax

I expected the code to print my_string "news" in capital letters and tell me the length of it.

Replace this line with your code. 
my_string = "news"
print .upper()my_string


Your format should be:

print your_string.upper()

You have the order reversed


I'm still having trouble. I changed the code to this:

my_string = "news"
print my_string.upper()

I'm still told it is wrong.


Wait nope! I got it, thanks for your help!


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.