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

Match each term to its definition. millennium a period of 100 years century a period of 10 years decade a period of 1,000 years era a time marked by an event th
How to turn three sticks into four without breaking any?
which of the following shows the slope and y-intercept on graph?​
Find the value of n Thank you
how did the pilgrims adopt to their surroundings
Annie borrowed $354 from her parents to buy a tablet. She plans to pay the money back in 2 equal payments per month for the next 12 months. How much will each p
Hello everyone, I need help on this Math question (:
what is the volume of the rock with a density of 3.5g/cm3 and a mass of 77g?
Las ___forman parte de la dieta básica de Venezuela.
"When the maese de campo arrived at the pueblo of Acoma he asked the Indians for provisions for his trip and gave them in exchange hatchets and many other thing