Question
What error in this program needs to be fixed?
def sum(num1, num2):
return num1 + num2
print(sum(4, 5.5, 6))
(1 point)
Responses
The sum function and print statement can’t be combined.
The sum function can only take integers, not decimals.
The sum function can only take two arguments.
def should be define.
def sum(num1, num2):
return num1 + num2
print(sum(4, 5.5, 6))
(1 point)
Responses
The sum function and print statement can’t be combined.
The sum function can only take integers, not decimals.
The sum function can only take two arguments.
def should be define.
Answers
There are no human answers yet.
Answered by
GPT 3.5
The sum function can only take two arguments.
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.