[{'reg number': 19150001.0, 'Email ID': 'aaduld2001@gmail.com', 'Department': 'CHE'}, {'reg number': 19150002.0, 'Email ID': 'uabhi165@gmail.com', 'Department': 'CHE'}, {'reg number': 19150003.0, 'Email ID': 'abhirav2001@gmail.com', 'Department': 'CHE'}, {'reg number': 19150966.0, 'Email ID': 'afsathafsal786@gmail.com', 'Department': 'CHE'}, {'reg number': 19150004.0, 'Email ID': 'aiswaryasankar345@gmail.com', 'Department': 'CHE'}, {'reg number': 19150967.0, 'Email ID': 'ajmalaj1334@gmail.com', 'Department': 'CHE'}]
from this dictionary i want to create a list of canidates those who have Department == 'che' or 'CHE' and another list of canidates those who have Department == 'ci' or 'CI'
for canidate in canidates:
if(canidate ['Department']==('che'or'CHE')):
che.append(canidate['reg number'])
elif(canidate['Department']=='cl'or'CI'):
ci.append(canidate['reg number'])