nerdexam
GIAC

GPYC · Question #25

Review the following code. Which of the following would give the results of variable "total"? ``python def addTogether(number1,number2,number3): total=number1+number2+number3 return total ``

The correct answer is C. addTogether(1,2,3). You've hit your limit · resets 1pm (America/New_York)

Python Fundamentals & Command Line Tools

Question

Review the following code. Which of the following would give the results of variable "total"?
def addTogether(number1,number2,number3):
 total=number1+number2+number3
 return total

Options

  • AaddTogether()
  • Btotal()
  • CaddTogether(1,2,3)
  • Dtotal (1,2,3)

How the community answered

(35 responses)
  • A
    3% (1)
  • B
    3% (1)
  • C
    91% (32)
  • D
    3% (1)

Explanation

You've hit your limit · resets 1pm (America/New_York)

Topics

#functions#parameters#return values#function calls

Community Discussion

No community discussion yet for this question.

Full GPYC Practice