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

Quadratic equation please solve.
suppose that the equation n=700(0.2) to the power of 0.5t represents the nulber of employees working t years after the opening of a new company how many employe
PLEASE HELP WILL NAME BRAINLIEST
1. A mass suspended from a spring oscillates vertically with amplitude of 15 cm. At what distance from the equilibrium position will the speed of the mass be 25
40. Determine the amount of time for polonium-210 to decay to one fourth its original quantity. The half-life of polonium-210 is 138 days. Please show all work.
Given the m<8=45, find the other angle measures. Be able to say how you found each angle measure. PLEASE help!
Solve for the value of x
Who supports federal student aid agencies ?
Player Points Travis 6 Marcus 7 James 17 Taylor 2 Hector 1 Julio 22 Jonah 8 Chris 11 Scott 14 The points from a recent game for nine members of the high school
Need help I don’t understand on Section B