average length problem | SoloLearn: Learn to code for FREE!


average length problem

import math sum=0 x=input() b=x.split() for i in b: c=len(i) sum=sum+c aver=len(b) average=sum/aver print(round(average)) if I use round i fail test 3 if i use ceil i fail test 1 lol

5/31/2020 12:34:39 PM

Abdul Majeed Faraz

3 Answers

New Answer


Punctuation should not be counted,is your code doing that?


just checked it seems yes it does ah gota go will reply when iam back sorry


thanks i solved it by removing punc