Help what am i not seeing? strings an output


print 'my_string'
print 'my_string'.upper()

Oops, try again. Did you create a variable called my_string?

on the right of page


move to next exercise

Replace this line with your code.


You didn't set a variable called my_string. You just have a string, 'my_string'.
You set strings to variables like this:

variable = "foo"

Also, you seem to misread the second instruction where it says to print the length of the string. You need to use the len() function to do that.


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