You are viewing a single comment's thread. Return to all comments →
Your code exceeds all cases, but i would add format in sake of robustness.
print("{0:.1f}".format(sum(i)/len(i)))
For input cases like:
5 3 89 90 78 93 25 90 91 85 88 86 91 92 83 89 90.5
Seems like cookies are disabled on this browser, please enable them to open this website
Zipped!
You are viewing a single comment's thread. Return to all comments →
Your code exceeds all cases, but i would add format in sake of robustness.
For input cases like: