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

An international company has 27,700 employees in one country. if this represents 33.6% of the company's employees, how many employees does it have in total? rou
how is 13.7 greater than 13.07
Can anyone help me out with 2
Carefully reread the following sentence from the passage: “In both countries it was clearer than crystal to the lords of the State preserves of loaves and fishe
what number must you add to complete the square x^2+4x=15
Rock layers are correlated if they both contain the same ____. a. elements c. fossils b. shapes d. type of rock Please select the best answer from the choices
What power did the articles of confederation deny the constitution?
Why is it important to use credible sources as a student as a healthcare professional
Monetary policy administered by the fed is the principal method of softening the effects of the business cycle because _____.
Marcus plans to install a fence in a backyard . The dimensions for the area are 15¼ yards long and 7¼ yards wide. How many feet of fencing will Marcus need to p