Question: USE PYTHON (JUPYTER) Question 3 - Functions, Structured Data and Exception Handling (12 marks) Question 3a (2 marks) List two (2) benefits of using functions
USE PYTHON (JUPYTER)

Question 3 - Functions, Structured Data and Exception Handling (12 marks) Question 3a (2 marks) List two (2) benefits of using functions and methods in your programs Answer for 3a... Question 3b (2 marks) List two (2) differences between Pandas dataframes and numpy arrays. Answer for 3b... Question 3c (2 marks) Describe how the code below works and state the mechanism it uses: n = None while n is None: try: S = input("Enter an integer: ") n = int(s) except ValueError: print("%s is not an integer." % s) Answer for 3C... Question 3d (2 marks) Describe another very common situation where this mechanism (from Q 3c) should always be used, and why it is important. Answer for 3d
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
