Please can somebody explain why the commands “if len…” and “else” only work if they have not been indented and why the “Print statements” require an indentation.
Example of a command that does work below.
Thank you in advance.
[print ‘Welcome to the Pig Latin Translator!’
Start coding here!
original = raw_input(“Enter a word:”)
if len(original) >5:
print “less than 5”]