Answer In Python Code For Problem 1a And What Should Be Written

Answer In Python Code For Problem 1a And What Should Be Written