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

What are the zeros of f(x)=x^2-12+36
Ben says 7 9/100 must be less than 7. 2/10 because 9 hundredths is less than 2 tenths. Do you agree? Draw a line to support your answer
How many times a day should you brush your teeth
If f(x)=3^x+10x and g(x)=2x-4, find (f-g)(x)
The question below refers to the selection “The Hollow Men” by T.S. Eliot. In a figure of speech the hollow men’s voices are compared to the — a. sound of rats’
How do I find the volume
How did European colonization affect west Africa HELP
The region known as the macula densa is part of
What is the answer to both of these
why should the numbers and types of atoms be the same on both sides of your chemical equation