Studying programming is not easy. You cannot learn to program from lectures and books only. You have to practice and develop software that works. This is why programming students have a lot of assignments to do. Programming is a very demanding and exhausting intellectual activity.