Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

1. define a function double that returns twice the number passed, eg do…

Question

  1. define a function double that returns twice the number passed, eg double(3) should return 6
  2. calling the function with 17 as the argument.

Explanation:

Step1: Define the function

def double(x):
    return 2 * x

Step2: Call the function

result = double(17)
print(result)

Answer:

34