How should you complete the code?

Posted by: Pdfprep Category: 98-381 Tags: , ,

HOTSPOT

The ABC company is building a basketball court for its employees to improve company morale.

You are creating a Python program that employees can use to keep track of their average score.

The program must allow users to enter their name and current scores. The program will output the user name and the user’s average score. The output must meet the following requirements:

• The user name must be left-aligned.

• If the user name has fewer than 20 characters, additional space must be added to the right.

• The average score must have three places to the left of the decimal point and one place to the right of the decimal (XXX.X).

How should you complete the code? To answer, select the appropriate code segments in the answer area.

NOTE: Each correct selection is worth one point.

Answer:

Explanation: https://www.python-course.eu/python3_formatted_output.php

Leave a Reply

Your email address will not be published.