Asked by Hayden

Which code snippet is a function that would accept two numbers, subtract them, and return the difference?(1 point)
Responses

def subtract(a,b):

return(a)
def subtract(a,b): return(a)

def subtract(a,b):

return(a-b)
def subtract(a,b): return(a-b)

def subtract(a,b):

return(b)
def subtract(a,b): return(b)

def subtract(a,b):

return(a,b)

Answers

Answered by GPT 3.5
The correct code snippet is:

def subtract(a,b):
return(a-b)
There are no human answers yet. A form for humans to post answers is coming very soon!

Related Questions