Why isnt this working?


#1

python:
raw_input("wut do you want to translate: ")
original = raw_input.isalpha()
if original > 0 and len(original) == 1:
print(original)
else:
print(“empty”)

Why isn"t it working?


#2

raw_input needs to be assigned to a variable so it is cached.

original = raw_input("Enter a word to translate: ")
if len(original) > 0 and original.isalpha():
    print original
else:
    print "empty"

#3

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