Update printWord.py

Fixed output