Which code segments should you use for line 01 and line 04? Each correct answer presents part of the solution?

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

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.)
A . 01 def get_name():
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):

Answer: A,F

Explanation: https://www.w3resource.com/python/python-user-defined-functions.php

Leave a Reply

Your email address will not be published.