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 particles of carbon that enter the air when wood or coal are burned?
Choose yes if you would document the item. Choose no if you would not document it. A graph that the writer constructed with information from another source. yes
Write a 3-digit number using the digits 5,9,and 2.then write your number using words
what part of the brain moitors bodybtempreture
oceanside bike rental shop charges 14 dollars plus 9 dollars an hour for renting a bike. joan paid 86 dollars to rent a bike . how many hours did she pay to hav
mercury thermometer was invented by
(01.03 MC)How did the Muslim culture expand so rapidly?
What is the simplest form for the fractions 12/30,12/20 and 21/35
Anne was observing a cell under a microscope which was undergoing binary fission. Which type of cell was Anne observing? 1 Eukaryotic animal cell 2 Eukaryotic p
20 is 85% of what number?