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

find the length, width and area of the rectangle formed by the pints R(-2,3), S(4,3), T(4,-1) and U (-2,-1)
Suppose that you have placed money in 2 funds: fund a and fund b. fund a accumulates at 9% effective and fund b at 8% effective. at the end of 10 years, the tot
In the two-tiered system of colonial government in the early eighteenth century, which group had authority to enact laws that applied both to colonists and to p
A pink crayon is made with 12\text{ mL}12 mL12, space, m, L of red wax for every 5\text{ mL}5 mL5, space, m, L of white wax. Which of the following wax mixtures
The hydrolysis of atp yields the molecule ________.
Science differs from other disciplines, such as history and the arts, because science relies on ?
I need pointers on how to write an speech for running for Vice President?
Why did columbus think the people of the island would be good servants?
what does pure substance mean
Tasteequik food markets one line of food products to consumers looking for meals that are very simple and quick to prepare. tasteequik also offers another line