问题描述
问题1.编写一个接受四个整数等级的最差4的函数和
40分。返回最差3个等级的平均值。将平均值舍入为
最接近的整数。使用内置的Python函数。
问题2.确定以下代码的输出:
40分。
A = [[1,3],[2,4],[7,8]]
B = A
C = A [1]
C [0] = 100
B [2] = 7 6
pr int(A)
pr int(B)
pr int(C)
解释这个结果(画图)。
我尝试了什么:
我已经尝试了一切,我不明白。
Problem 1. Write a function worst of 4 that accepts four integer grades and
40 pts. returns the average of the worst 3 grades. Round the average to
the nearest integer. Use built-in Python functions.
Problem 2. Determine the output of the following code:
40 pts.
A = [ [ 1 , 3 ] , [ 2 , 4 ] , [ 7 , 8 ] ]
B = A
C = A[ 1 ]
C[ 0 ] = 100
B[ 2]= 7 6
pr int (A)
pr int (B)
pr int (C)
Explain this result (draw pictures).
What I have tried:
I have tried everything, and I don't understand.
推荐答案
这篇关于需要帮助phyton。谢谢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!