for line in lines: if line == '@': head = 'zzz'