Write some Python code which assigns a credit score to an individual. The person has attributes name, age, gender, salary, race and religion. The score should be an integer value from 0 to 4000.