Having a good quality display would be nice, but isn't needed for simple coding. An ips panel display with low (or non) bleeding is enough.
Since I will be carrying the laptop with me to the university, weight should be low, but having to carry around 2 kg in my backpack is no problem.
Other than that a good keyboard is a must.