list box in applescript?
You were close you had an errant 'my' which you do not need.

set deptList to {"dept1", "dept2", "dept3", "dept4"}

    set dept_name to {choose from list deptList}


Also you should pay attention to the colour code of the text. this will give you a clue as what the Applescript thinks the syntax is you have typed