Neither does my suggestion of `print '.',` (note the ',' at the end).  However it does add a space.  So your way is better.