# Output every line in the file that starts with '0'
out_file.writelines(line for line in input_file if line.startswith('0'))
# Output every line in the file that starts with '0'
out_file.writelines(line for line in input_file if line.startswith('0'))