PygLatin 8.Word up


#1




File "python", line 10
else
^
SyntaxError: invalid syntax


# whats wrong ? there is nothing worng with my else as far as i can see ?
pyg = 'ay'

original = raw_input("Enter a word:")

if len(original) > 0 and original.isalpha():
        print  original
        word = original.lower()
        first = word[0]

else: 
       print 'empty'


#2

That code does not have syntax errors. Likely some other code was run.


#3

well thats the code i came up with and its giving me an error and its driving me nuts :stuck_out_tongue:


#4

Maybe you removed the problematic part in what you posted.

What you posted does not have syntax errors. Some other code was used to cause it.

Note that the line mentioned in the error message does not appear in the code in your post.


#5

well the code on here is the same ( copy paste ) as it is in the "IDE"
and thats the only code i have tryed to run i have even tried to re paste and even re write it but still the same error messige :frowning:


#6

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