It depends on the course you are pursuing. If you attend regular lectures in class like programming language etc. then you need to note the programs on notebook in that case you can buy a laptop to note and compile the programs. If you want to practice all the things at home then desktop computer is best for you.
Happy Shopping.