migration from cloud service
This commit is contained in:
12
week4/ex5.py
Normal file
12
week4/ex5.py
Normal file
@@ -0,0 +1,12 @@
|
||||
def main():
|
||||
print('==Exercise 5==')
|
||||
scores = [90,36,78,59,85,98,73,88,100,65]
|
||||
scores.sort()
|
||||
scores = scores[::-1]
|
||||
print(scores,"\nMax score:",max(scores),"\nAvg score:",sum(scores)/len(scores))
|
||||
|
||||
print('==End Of Ex5==')
|
||||
return 0
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
Reference in New Issue
Block a user