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

+1

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

+4

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

+1

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

+1

thanks i solved it by removing punc