CertyRush
Đang tải...
C CertyRush
Câu hỏi free preview

Câu 104: PCEP-30-02: PCEP – Certified Entry-Level Python Programmer

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 sc…

Nội dung câu hỏi

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). What would you insert instead of ??? and ??? ?

Minh họa câu hỏi

Các lựa chọn

Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.

  1. A. 1 | %-20f2 | %4.1s
  2. B. 1 | %-20i2 | %4.1
  3. C. 1 | %-20s2 | %4.1f — đáp án hiện tại
  4. D. 1 | %-20f2 | %1.4s
  5. E. 1 | %-20d2 | %4.1f
  6. F. 1 | %-20s2 | %1.4f

Cộng đồng

0 bình luận công khai. Tên thành viên được ẩn một phần.

Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.

Câu hỏi liền kề