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 is the 15th ammendment in your own words dont copy or paste please will mark brainliest
List three technologies that pose ethical dilemmas?
What are the missing numbers ( ),9.8,9.1,( ),7.o,6.3,5.6
a)A local shoe store buys shoes at a wholesale price and then marks them up 80% to calculate the retail price. The wholesale price varies, depending on the quan
Which option identified whether Ida is sticking to the recommended daily amount, and correctly explains why or why not
is journeys spelt with an apostrophe
simplify 5.142857142857143
Ben Franklin evaluation speech of the convection
None of it makes any sense to most of them. (What is the verb?) * A.None B.makes C.sense D.them
Which planets are located outside of the Asteroid Belt?