python check if looping empty list code example Example: check if empty item in list python if '' in list: # do stuff