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 happens when pyruvate is converted to lactate?
1.What feelings do you have about your learning? 2.What question do you have about what you learned?
I need help...............
انا نے اپنی خوشی کس بات میں تلاش کی سبق سچی کہانی کو ذہن میں رکھتے ہوئے آمنہ کی کردار نگاری لکھیں
***If you are able to help me please help me***There are thick forests located above the limestone in the North Central Plains. Please select the best answer fr
Desmond tutu “would most likely be a criticism of
The motion of a skateboard along a horizontal axis is observed for 5 s. The initial position of the skateboard is negative with respect to a chosen origin, and
The photo is above please answer thank you.
Why dioramas are important to African Americans?
n "Through the Tunnel," which choice best describes Jerry's feelings when he first encounters the boys diving from the rocks?