Update calc.py

Concat the text for output.