Estou recebendo o codigo de erro dizendo que:
Did you remember to print my_string.upper()?

3 my_string = 'Meu nome'
4 print len(my_string)
5 print my_string.upper()

Traceback (most recent call last):
File "python", line 5, in
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 9: ordinal not in range(128)

o que pode ser isso?


it should work unless you have some invalid character in your my_string

my_string = 'Meu nome'
print (len(my_string))
print (my_string.upper())


print is a statement in Python2 (which is what Codecademy runs), so those parentheses do not belong there.

In Python2 it should look like:

print len(my_string)

And if it was a function, then the space should not be there, so in Python3 this should look like: