def sillyfuncx return x 5print sillyfunc4sillyfunc31 What is the function name2 What is the input type3 What is the output type4 What is the instruction code for calculating the function5 what doe
- The function name is sillyfunc.
- The input type is a number (integer or float).
- The output type is a number (float).
- The instruction (code) for calculating the function is to divide the input by 5.
- Line 3 prints the output of calling the sillyfunc function with an input of 4.
- Line 4 calls the sillyfunc function with an input of 3, but does not print the output.
- You can run the function as many times as you want without rewriting it. You can simply call the function with different inputs.
原文地址: https://www.cveoy.top/t/topic/i7Ox 著作权归作者所有。请勿转载和采集!