When the loop through ports runs, the variable afc_rem only gets set to all_fields on the first loop, then when values are removed, it never regains the full list of all_fields. Why does this happen?
if __name__ == "__main__":
 
    all_fields = ["byr","iyr","eyr","hgt","hcl","ecl","pid","cid"]
    
    ports = ["byr", "iyr"]
   
    for port in ports:
        afc_rem = all_fields
        for field in afc_rem:
            if field in port:
                afc_rem.remove(field)
                
 
    