python snippet with coding