Pyg Latin 1


original = raw_input("Enter a word:")

len(original) > 0:
print "empty"

What is wrong with my code??Help needed please.


general syntax for if statement:

if condition:

for some reason, your condition is not on the same line as if keyword


I would recommend when you are going to show us the code, that you display it exactly how you have in on your side instead of figuring out if there are other issues that can't be seen properly. Use markdowns to help out. See this link.

On line 2, put your len(original)>0: with the if statement. Also, make sure the indentations are correct.

Let me know if that worked!


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