0

How to interpret this?

I got the below code in a challenge but do not understand why is the answer 4. Can you help me understand please? What is the output of this code? Import re sent = “hi, how, are ! you doing” count = 0 list1 = filter(None, re.split(“[,!]+”, sent)) for i in list1: count +=1 print(count) Answer is 4.

13th Oct 2019, 7:58 AM
Pei Fang Boo
Pei Fang Boo - avatar
0 Antworten