Not sure why len() is returning just 1 as output in Python. Should be 4.
names_string = input("Give me everybody's names, separated by a comma. ")
names = names_string.split(", ")
num_items = len(names)
print(num_items,",",names,type(names))
Output
Give me everybody's names, separated by a comma. angel,barbara,mary,jjjj
1, ['angel,barbara,mary,jjjj'] <class 'list'>
>Solution :
In your input string ('angel,barbara,mary,jjjj') names are separated with commas without spaces (','), but you try to split it by comma and space (', '). There is no ', ' in the string, so it’s not split