Please Answer In Python3 Syntax And Only Do Part 2

Please Answer In Python3 Syntax And Only Do Part 2