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

How do I calculate a number of deaths per year to deaths per minute?
What idea is supported by the evidence presented in "two views of intelligence"? Why does Dweck include the information about premed students in the last paragr
What is the volume of the cylinder
To make four and a half gallons of ice cream it takes 6 3/10 gallons of milk how many gallons of milk does it take to make one gallon of ice cream
What is the equation of the line perpendicular to y=-2x-3 passing through points (-6,5) Thank you!
Two different ways to find the difference for 12-3
Jamie here’s a high-pitched sound that brain changes to a low pitched sound.What is the most likely occurring?
what is an important part of the cycle that has made and kept the earth a place where living things can survive?
PLEASE HELP ME!!!!!!!!!!! Use examples from the lessons and your own personal experiences to compose at least one well-developed paragraph on the following: Exp
State two of Newton’s three laws