bone8765 bone8765
  • 03-06-2021
  • Computers and Technology
contestada

Write a function definition for a function which takes one parameter and returns twice that parameter

Respuesta :

MrRoyal
MrRoyal MrRoyal
  • 03-06-2021

Answer:

The function in python is as follows:

def twice(num):

   return 2 * num

Explanation:

This defines the function; The function receives num as its parameter

def twice(num):

This returns twice of num

   return 2 * num

Answer Link

Otras preguntas

"A sweater that costs $20 was marked up by 60%. what was the markup and what is now the selling price?" for the markup I got 12 and for the selling price I got
The product of x and 2 is less than or equal to 4
The study of metals and the process for refining and making things from them is called _____. philosophy 18 metallurgy inductive reasoning
. A failure of the red-sensitive nerves in the eye to respond to light properly causes A. color blindness. B. chromatic aberration. C. farsightedness. D. astig
How many pennys equal 1 million dollars in scientific notation
Diane Nash struggled with something as she worked for civil rights. How did her decision contribute to success
How does kinetic energy affect the stopping distance of a vehicle traveling at 30 mph compared to the same vehicle traveling at 60 mph?
Powers shared by the federal government and state governments are known as .
Most of the time, combustion reactions occur when hydrocarbons react with what element?
is the word last a common noun