Why am I removing "print" after building the If statement with it?


#1

I was getting an error and finally hit solution, and it did not include print in my code.

pyg = 'ay'

original = raw_input('Enter a word:')

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

Under first = word[0] the correct solution does not include the print original statement. can someone please explain why?


#2

Because it is no longer part of the program. We needed it for only a single step, just to confirm things were working.


#3

Thank you for the clarity