if no items in list print 0 code example Example: check if empty item in list python if '' in list: # do stuff