Câu 4: 98-381: Introduction to Programming Using Python
The ABC company is creating a program that allows customers to log the number of miles biked. The program will send messages based on how many miles the customer logs. You create the following Python code. Line numbers are included for reference only. You need to define the two required functions. Which code segments…
Nội dung câu hỏi
The ABC company is creating a program that allows customers to log the number of miles biked. The program will send messages based on how many miles the customer logs. You create the following Python code. Line numbers are included for reference only. You need to define the two required functions. Which code segments should you use for line 01 and line 04? Each correct answer presents part of the solution? (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.
- A. 01 def get_name(): — đáp án hiện tại
- B. 01 def get_name(biker):
- C. 01 def get_name(name):
- D. 04 def calc_calories():
- E. 04 def calc_calories(miles, burn_rate):
- F. 04 def calc_calories(miles, calories_per_mile): — đáp án hiện tại
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.