题目
题目
未知题型

Copy ofwhat value is assigned to cost?def calculate_total(price, tax=0.1): total = price + (price * tax) cost = calculate_total(20)

选项
A.22
B.a run-time error
C.20
D.None
查看解析

查看解析

标准答案
Please login to view
思路分析
We start by understanding what the code is doing step by step. Option 1: 22. This would be the result if the function calculate_total returned the computed total price (price + price*tax). However, inside the function, although total is computed, there is no return ......Login to view full explanation

登录即可查看完整答案

我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!