should i just get an ipad with a keyboard and apple pencil for college?

next fall i will be a freshman in college but i’m not sure if i should get an ipad and a computer or just an ipad. i will be majoring in chemistry so there will be lots of note taking and what not and i’m not sure if it’d be more convenient to just have an ipad to carry around or have a computer just in case. thoughts? which ipad should i be looking into buying?