TypeError: ‘str‘ object is not callable
input()output the total number of vowels and the total number of consonants in the sentence. Note: special charactersdef num_vow_and_cons(x): for e in x: if e == string.punctuation(): x = x.replace(e, "") else:
原创
2021-02-26 12:56:17 ·
90 阅读 ·
0 评论