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

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

You develop a Python application for your company. A list named employees contains 200 employee names, the last five being company management. You need to slice the list to display all employees excluding management. Which code segments can you use? (Choose two.)

Nội dung câu hỏi

You develop a Python application for your company. A list named employees contains 200 employee names, the last five being company management. You need to slice the list to display all employees excluding management. Which code segments can you use? (Choose two.)

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. employees[1:-5]
  2. B. employees[0:-5] — đáp án hiện tại
  3. C. employees[:-5] — đáp án hiện tại
  4. D. employees[0:-4]
  5. E. employees[1:-4]

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ề