Upper()


#1



ministry = "The Ministry of Silly Walks"

print len(ministry)
print ministry.upper()


#2

Are you looking for something?


#3

This code below does not execute
print len(ministry)
print ministry.upper()


#4

Well first off, if you are on Lesson 3.) Strings and Console Output Sublesson 7.) upper() then you are asked to do the following:

Call upper() on parrot (after print on line 3) in order to 
capitalize all the characters in the string!

Secondly, for this lesson you are not required to use len in anyway so even if you set up your code like it is supposed to be without using parrot like the lesson calls for it would be wrong.

Thirdly, your format other than print len(ministry) is fine. In fact, if you just replaced each with parrot, "norweign blue" and parrot.upper() in there proper places you should be good to go.


#5

Why does the lesson show "Ryan".lower() but when it tells my to do it myself with the variable parrot it wont execute because it was written as print "parrot".lower() I figured it out after getting rid of the parentheses on parrot but I am curious as to why it didn't work.


#6

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