Question: using python Question 1: Define a function called arg_dict that takes an arbitrary number of inputs (or arguments), prints how many inputs were given, and
using python

Question 1: Define a function called arg_dict that takes an arbitrary number of inputs (or "arguments"), prints how many inputs were given, and returns a dictionary with values given by the inputs and the key for the ith input is 'arg.i'. For instance, you output should look something like: >>> D = arg_dict(15, -2, "hello", 7.8) you gave 4 inputs! >>> print (D) {'arg_1': 15, 'arg_2': -2, 'arg_3': 'hello', 'arg_4": 7.8}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
