Question: using python Question 1: Sometimes after making a function you want to test it by seeing if it can handle different inputs (like positiveegative numbers,
using python

Question 1: Sometimes after making a function you want to test it by seeing if it can handle different inputs (like positiveegative numbers, floats, strings). Make a decorator Gtest that takes as input a function f (assumed to be a function with a single input) and defines a new function new_fun that takes no arguments and doesn't return anything but instead simply prints f(0), f(3.4), f(-12), and f("a"). Remember that your decorator must return the new function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
