Help what am i not seeing? strings an output


#1



https://www.codecademy.com/courses/python-beginner-sRXwR/4/1?curriculum_id=4f89dab3d788890003000096#


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

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

on the right of page

my_string
MY_STRING
None


move to next exercise


Replace this line with your code.


#2

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.


#3

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