42.8k views
5 votes
Using Python: Write the definition of a function named twice that receives an integer argument and returns an integer that is twice the value of the parameter.

User Urandom
by
8.5k points

1 Answer

1 vote

Answer:

def twice(int):

return int * 2

User Kien Dang Ngoc
by
7.9k points