Question
(PYTHON CODE) Write a program that calls two functions named half and multi, which respectively return a value that is half that of the argument
(PYTHON CODE)
Write a program that calls two functions named half and multi, which respectively return a value that is half that of the argument and 10 times multiplied of that argument. (Assume the number variable references a float value). Write code for the function.Write a program that calls two functions named half and multi, which respectively return a value that is half that of the argument and 10 times multiplied of that argument. (Assume the number variable references a float value). Write code for the function.
result= half(number)
result1=multi(number)
Code must ask for a number from user, and pass that value to the half() function. The product then gets sent to the multi() function.
For example, if 2 is entered as the number, the half() function should output 2 and the multi function should give final answer of 20
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started