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

Who is George Washington
Choose all the sets containing the number Pi: natural numbers whole numbers integers rational numbers irrational numbers real numbers
A summary table in which numerical data are tallied into class intervals or categories.
how might squanto experiences with the english relate to the pilgrims
What is the slope of y= 5+3x
Unless the subject matter is considered common knowledge, citations are necessary when writing about:
List two examples that illustrate an increased role for women in American society from 1880 to 1917.
Desert rabbitds are adapted to the warm climate because their large ears aid in the removal of haet by
I Need the answer tonight please help
Which of the following describes a similarity between all four of the major British colonial regions of North America? a.Religion was the central focus of socia