write a function code on python

welcome to shbcf.ru