Pyg Latin 1


#1

original = raw_input("Enter a word:")

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

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


#2

general syntax for if statement:

if condition:

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


#3

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!


#4

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