QuestionQ69

VerifiedFunctions and Exceptions

ABC company is developing a program that lets customers record the number of miles they bike. The program will send messages according to how many miles a customer records. You create the following Python code.

Question Image

What should be inserted in place of ??? and ????

Choose two
Explanation

get_name accepts no arguments because it obtains the name through input() within the function. calc_calories needs two parameters named miles and calories_per_mile, since those names are used in its multiplication expression; the caller can pass distance and burn_rate as the corresponding argument values.

Community Discussion

No comments yet. Be the first to start the discussion!