Write A Python Code For The Below Required Output