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

Sue's science class is competing to see who can build the tallest tower. Each group of students gets 10 newspapers and 2 meters of tape. Sue's group decides to
What was Ilbet Bill and why was it reserved
help! I only have a certain amount of time.... easy points! The sum of 3 times a number and 4 is 13. Find the number.
Answer the following 10 questions. Your response should not be longer than 3 sentences. (10 points each) 1. Give one reason why Anne Hutchinson threatened the P
What should be used to align objects on a page? Legibility and Leading Margins and White Space Headline Justification Line Length and Fonts
cotatron: transcription-guided speech encoder for any-to-many voice conversion without parallel data
a movie theater charges $4 for each child's ticket and $6.50 for each adult's ticket. one night, 200 tickets were sold, amounting to $1100 in ticket sales. how
the effects of online learning and task complexity on students’ procrastination and academic performance
sambhog means what what does it means ​
What are the factors affecting population change? Explain ​