I have a list as follows:
sample = ['a', 'b', 'c', None]
My Code is :
sample_out = ','.join(sample)
Error:
TypeError: sequence item 3: expected string, NoneType found
Could someone point me out how to handle the None
?
I have a list as follows:
sample = ['a', 'b', 'c', None]
My Code is :
sample_out = ','.join(sample)
Error:
TypeError: sequence item 3: expected string, NoneType found
Could someone point me out how to handle the None
?