Python: Print Statement and How to produce output