Siemens interview question

How python print works internally