Check Yourself!


#1

original = raw_input("Hello")
if len(original) > 0 and original.isaplha():
print original
else:
print "empty"

I copied this from someone while comparing my work I had everything correct except the "and original.isaplha". How to know when to use it and what does it mean?


#2

Hi first instead of

.isaplha():

Should be

.isalpha():

The Method isalpha() return true if all characters in the string are alphabetic.

"Hello".isalpha()

#output
True

"Hello!".isalpha()

#output 
False