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

which refers to the maintenance of a stable internal environment despite changing external conditions? A.differentation B. self-renewel C. homeostasis D. specia
Cambodia, Vietnam, and Laos all share a major river that empties into the South China Sea. It was also the site of many battles during the Vietnam War. What is
What is one-fourth of four sevenths
The center of a soccer field has an area of 100[tex] \pi [/tex]m squared. Find the circumference of the center circle.
Under Mussolini , Italy became a...
What is the surface are of a storage b
What is the feeling produced by a conflict or problem in a story that has not yet been solved?
in chapter 20 how does Percy feel about seeing his mother
which statement best described the philosophy of John locke
What does gustatory mean?