What did I do wrong?


#1

Write your code below, starting on line 3!

len(my_string) = "dogs"
print "I like %s!" % (len(my_string))


#2

Hi @elliwoods22,

This is invalid ...

len(my_string) = "dogs"

Here, only the name of the variable should be to the left of the = operator.

This is correct syntax for assigning a value to a variable, such as my_string ...

my_string = "dogs"

#3

I got that, but how do I do the last part is it like:
print "I like %s!"

Or like:
print "I like my_string!"


#4

Which exercise are you doing?

Codecademy bases its submission correctness tests (SCTs) on the instructions for each exercise. Our advice needs to be specific to the appropriate exercise.


#5

I'm doing
16. And Now, For Something Completely Familiar


#6

Codecademy is a little strict for this one. You will need to display the len without the extra information ...

print len(my_string)

Don't forget to also use the upper method for this exercise.


#7

Wait do I do this?

Write your code below, starting on line 3!

len(my_string) = "I like dogs"
print len(my_string)


#8

This line ...

len(my_string) = "I like dogs"

... should be ...

my_string = "I like dogs"

#9

It's printing a number down instead of the letters. This i what I'm doing:

Write your code below, starting on line 3!

my_string = "I like dogs"
print len(my_string)


#10

Oh never mind I got it. Thanks for your help!


#11