Pyglatin check some more


#1

Start coding here

raw_input("Enter a word:")
original = raw_input
print original
empty_string = ""
if len(original) > 0 and original.isalpha():
print original
else: print "empty"
Why is this wrong ? I don't get why I am supposed to write len(empty_string) and can't write len(original)


#2

Here you ask the user to enter some text but you don't store it in a variable so you have no reference to what the user types in.Which means you cannot use it anywhere in your code.

Here I want you to insert a print statement after this line like this

print original #<built-in function raw_input>

you are just storing the function inside the variable(So that variable is now a function).You can call it like this

print original("What is your name?")

Now on this line you have an error

Can you tell why based on the errors you had before(especially with the original)?
If you still can;t figure it out just holla at me


#3

if len(empty_string) > 0 and original.isalpha():
it had to be like this. I don't understand why I need to create the other variable empty_string and can't just reference to the variable original to check either whether the user's word is empty or there are numbers.


#4

thats because you never needed to create it. you still need to use the original but in yor code you have original as a function(not a string)
and the len() function expects an iterable(string, list etc) to be passed as argument. to fix that you need to merge these two lines into one