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 72:75 as as fraction
Bacteria are very small single-celled organisms that lack a nucleus. Although bacterial cells are less complex than the cells that make up the human body, bacte
Which is bigger 12.5% or 3/20
what is 11.11 as a mixed number ?
what is qualitative and quantitive data?
Explain how cobalt-60 and cobalt -59 can be the same element but have different mass numbers
Andy estimated that he would need 71 feet of lumber for a tree house project. He later found that the actual amount of lumber needed was 60 feet. What was the p
PLEASE HELP I GIVE THANKS
Material in the cell nucleus made up of DNA and various kinds of protein is called_______?
PLEASE HELP I GIVE THANKS