Word Up


#1

Stuck on "Word Up"
https://www.codecademy.com/courses/python-beginner-2W5v7/1/2?curriculum_id=4f89dab3d788890003000096#

I am not sure how this code is incorrect, I keep getting the error “Oops, try again. It looks like word is set to “original.lower()” instead of “w”.”



pyg = "ay"

original = raw_input("Enter a word:")

if len(original) > 0 and original.isalpha():
    word = "original.lower()"
    first = "word[0]"
    print "word"
else:
    print "try again, you dumb"



#2

No quotes.

Ditto.

Not asked for.

This, neither.


#3

Why are no quotes required?


#4

Because a variable is an identifier. It cannot have quotes or the interpreter will not discover it as such.


#5

So, we only use quotes when we are telling what we want the variable to contain? Thanks, by the way


#6

Only use quotes when you want the variable to be TYPE str.


#7

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