In python, we can check if a list contains certain element. For this “in” keyword is helpful.
#check if raju is present in the list
if “raju” in selected_candidates:
print(“Raju has been selected for the job”)
print(“Raju has been disqualified for the job”)
Raju has been disqualified for the job.