Hello,
I'm learning Python and in my studies I came across the following situation:
>>> responses = ['Y', 'Yes', 'No', 'no', '', 'Yep']
>>> responses = [x[0].lower() if x else 'n' for x in responses]
>>> responses
['y', 'y', 'n', 'n', 'n', 'y']
I can not understand, in this case what makes x True or False ?
I thank you for your attention.