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 word from the sentence has a positive connotation? A. paid B. compliments C. performance D. brother
HELP WILL NAME BRAINLIEST
(PLEASE HELP!!!!!)summary for the first Peloponneseian war​
Find [tex]\sf \dfrac{dy}{dx}[/tex][tex]\sf y=\dfrac{x}{sin^nx}[/tex]n is an integer .Note:-Solve with proper explanation ,Pls don't answer if you are not sureSp
Read this line that is spoken by Sir Gawain in the passage. You are like an actor who has practiced his lines. This is an example of which kind of language? O o
Pythagorean Theorem - Distance Formula - Item 20760 Questior Find the distance between the points (-5, -4) and (3, 1)
What is the acceleration of a car with the mass of 1,980 kg with a net horizontal force of 1,000 N?
Develop a healthy one day menu consisting of breakfast, lunch and dinner
The two triangles are similar. Complete parts a-c.
When I'm saying thank you in an e-mail, would it be: My best gratitudes, My best gratitude's, My best gratitude,