Siemens Interview Question

How python print works internally