Python – Average word count 2

Hi, here is a kind of follow up for the 1st one. We, in this exercise , deal with leading space(s) , Boolean and punctuation. def average_word_length(my_string): space_sayisi = 0 word_sayisi = 0 letter_sayisi= 0 ortalam_word_uzunlugu = 0 punctuation_sayisi = 0 punctuation_listesi = “.,!? ” try: uzunluk = len(my_string) except: return “Not a string” for…
Read more