Solved Please Answer In Python Syntax And Only Do Part 2

Solved Please Answer In Python Syntax And Only Do Part 2