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

HELP in some native American tribes there is a disorder called _____ which is when individual experience violent or aggressive outbursts of which they have no
Why does a country needs a constitution? Explain in simple words
hi i need to know how much watt hours divided by month total
what is the quotient of 7^2/2x+6 divided by 3x-5/x+3
Arrange the Allies’ victories in the Pacific war in the order in which they happened. destruction of Hiroshima liberation of Philippines victory at Iwo Jima vic
transmit impulses from other neurons to the cell body while transmit impulses away from the cell body.
Why did some leaders of Middle Eastern nations oppose secular governments there? A. They believed in Westernization. B. They thought Muslim nations should f
Hello, please help me understand this question
What’s the square root of 36?
what is mascara made out of?