Pyglatin error I don't get


#1

In the pyglatin exercise I wrote the following:

raw_input("Enter a word: ")
output = raw_input

and the module accepted it as passing the exercise. However when I attempted to then count the int of either output or raw_input with the following I got an error saying something about the built in function raw_input:

if len(original) > 0:
print original
else:
print “empty”

Now when I try it the code runs, but doesn’t seem to work! It tells me the len of the first word I put in, even if I rerun it and try entering no characters.

Can anyone explain what is happening here?

When I change the first line to this, it seems to work fine:

original = raw_input("Enter a word: ")

why can’t I do a raw_input and then assign the result of raw_input to a variable?


#2

functions don’t have lengths, you should call them instead