mirror of
https://github.com/DavidGailleton/42-Piscine_Python.git
synced 2026-11-01 08:52:03 +01:00
Improved ex3
This commit is contained in:
1 parent
3333b8503d
commit
7e3ca26e97
3 files changed
+38
-23
No files matched your search
@@ -11,14 +11,7 @@ if __name__ == "__main__":
|
||||
while i < len(args) - 1:
|
||||
scores[i] = int(args[i + 1])
|
||||
i = i + 1
|
||||
print("Scores processed: [", end="")
|
||||
i = 0
|
||||
while i < len(scores):
|
||||
print(scores[i], end="")
|
||||
if not i == len(scores) - 1:
|
||||
print(", ", end="")
|
||||
i = i + 1
|
||||
print("]")
|
||||
print("Scores processed:", scores)
|
||||
print("Total players:", len(scores))
|
||||
print("Total score:", sum(scores))
|
||||
print("Average score:", sum(scores) / len(scores))
|
||||
|
||||
Reference in new issue
Block a user