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

Put in order the steps for preparing a speech. Select specific details. Outline the entire speech. Decide on the central idea, and state it in one sentence. Cho
What is the mix of sperm and fluids called?
GIVING 35 POINTS! Imagine you are a Northerner listening to the Gettysburg Address. How does it make you feel: Sad for those who died at Gettysburg? Encouraged
Can you please help me on this question.
If their is a right triangle does that mean there is left triangle ?
find two positive numbers whose difference is 17 and whose product is 1820
how many degrees are in a circle of a 3/4 turn
2cot^2(x)-7csc(x)+8=0
The sum of 74 and 6 is
Why is the leaning tower of Pisa leaning what really happened ?