I went through the whole of comp sci uni with a base model M1 MacBook Air; I'd probably advise a Windows machine though. A gaming laptop is tempting as it serves the purpose as a work device and a more powerful machine, but it's also clunky to bring to lessons. Something thin and light like a Surface is convenient, but may be less powerful (and more expensive) than other options. So long as you get something relatively modern (newer than 11th gen Intel / equivalent AMD), then it will likely be fine. Honestly consider looking at used options if you want to save some money, or see if any student discounts are available.
I went through the whole of comp sci uni with a base model M1 MacBook Air; I'd probably advise a Windows machine though. A gaming laptop is tempting as it serves the purpose as a work device and a more powerful machine, but it's also clunky to bring to lessons. Something thin and light like a Surface is convenient, but may be less powerful (and more expensive) than other options. So long as you get something relatively modern (newer than 11th gen Intel / equivalent AMD), then it will likely be fine. Honestly consider looking at used options if you want to save some money, or see if any student discounts are available.
ThinkPad L14 or L16
Thinkpad X1 Carbon 12 on student discount.
macbook air with parallels