I am not creating parrot


#1



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


IT says I have not created a variable called parrot.


let me move on.


Replace this line with your code.


#2

please post your code so we can help you.


#3

Parrot = ""Norwegian Blue""
print len"(parrot)" = 14
str"(parrot)"


#4

why two pares of quotes?

isn't len supposed to calculate that?
and why quotes?

why this line:


#5

was trying to find what was wong


#6

was trying to see what was wrong


#7

well, it is a variable so you do not need quotes here:

and you are already finding out the length by doing this:


#8

hey adaigle2,
You did two mistakes.
1.Your parrot variable is capitalized but when you were printing it It's in Lower Case.
2.print len"(parrot)" = 14 Is wrong.
Just use
print len(parrot)
without quotes.
Explanation :
1.Parrot,parrot ,PARROT etc are different variables,They're not same.
2.Once we define a variable we don't put in quotes. Only texts are quoted.
3.We do not assign a value another value,like assigning 4 = 5 does not make sense.
print len"(parrot)" = 14 Is wrong.


#9

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