Pyg Latin 4. Check Yourself


#1

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

whats wrong with my code?


#2

If that's what it really looks like then you're missing some indentation.

If not, then I have no idea, can you describe the problem? And it would also be useful to see what the code really looks like, so make sure to post an intact version of your code.


#3

I figured. It works now, thank you.


#4

how did you do it? mine doesn't work also


#5

here is the error massege


#6

Hi try it like that

original = raw_input("Enter your word")

#7

thank you!
it worked


#8

wht if it still dsnt work??? @wizmarco


#9

Hi can you post your code?


#11

original = raw_input("tawny")
if len(original) > 0:
print "tawny"
else:
print "empty"

this should work


#12

maybe move that colon after the 0 one space back


#13

oh its done thnks for replying tho i really appreaciate it
if i have any other problem i will ask u :slight_smile: