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

5. Find the value of x, if 6: x :: 15:95.​
Comparative study of rainfall in Kerala and chhattisgarh through bar graph
Why is sugar an organic compound
DEVELOPMENT ETHICS ADDRESS 3 KEY THEME PARATES THEM.​
the last time i visited aswan ............ in 2017
who is at first went in universe?
Help plsssssssssssssssssss
Refer to the article "Aboriginal Australians and Dreamtime Creation Myths." Part A What does the author explain about the inclusion of a sun goddess in the st
Handwritten solution required
Section-C (A) Supply the correct form of the verbs in brackets : (i) Fortune Favors (Favour) the brave. (ii) Our school..uns. (run) from 7.30 to 12.30. (iii) He