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

Solve if u can… It is a 9 letter word 123456789, If you lose it u die, If u have 234, you can 1234, 56 is one type of disease, 89 indicates exact location and t
numbers that are not decimals
After renowned black singer Marion Anderson was denied the use of a concert hall in segregated Washington, d. c. , who arranged for her to sing on the steps of
what does marcellinus mean when he describes the Huns as being glued to their horses
what happens to the period of revolution for the planets as they move farther away in position from the sun
Underneath his cornfield, John Waters finds the remains of an ancient Native American settlement. Which independent agency would be interested in making arrange
The width of a rectangle is 6 ft. What os the perimeter of the rectangle if its area is 42 square feet? A 26 feet B 36 feet C 42 feet D 48 feet
Some research indicates that lowering sodium may reduce a. systolic blood pressure b. HDL cholesterol c. diastolic blood pressure d. diastolic blood pressure
You fall down and scrape your hand – describe what each component of blood would be doing at the injury site.
Need help on number 20, please!