Stuck on question 16 strings and consules line 3


#1



Replace this line with your code.


#2

Write your code below, starting on line 3!

print "my_string".lower()
print "the length of my_string"
print "my_string".upper()

can you please give me help


#3

Ok first off, you don't need my_string or the length of my string in quotes. Second, you seem to have gone astray in your variable building and printing a little. Here is a basic outline for this:

variable = "string"
print what(variable)
print variable.upper()

Hopefully this will help you solve the lesson! :smiley:


#4

I have put in variable = my_.string"and it says oops try again. Did you create a variable called my_string
Please help I just can't get it right many thanks for your help


#5

Ok well if you have if you could please post your whole code then?


#6

It says on line 3 create the variable my_string and set it to any string you like
as I said I cannot get this, I have tried so many times please help again


#7

Ok well as I have said before as well and you do not seem to be listening to me is that this is way you set up the variable my string and set any string you like to it:

my_string = "whatever"

you write your variable out and equal it to a string of your choice. This is a direct example of how to complete that step which you are begging for help on. If you need help with the rest of the lesson go back to my first reply and look at the basic outline.


#8

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