Python programming assignment

Python programming assignment Image 1