QuestionQ120

VerifiedComputer Programming and Python Fundamentals

You have this file:

Question Image

You want this output: The average score for Peter is 200.00.

Which command must you run at the command line?

Explanation

The program treats the first argument after the script name as the person's name and converts all remaining arguments to scores. The scores 100, 200, and 300 sum to 600; dividing by three produces 200.00 when formatted to two decimal places.

Community Discussion

No comments yet. Be the first to start the discussion!