You'd be better off with a laptop.
Tablets are not known for their commodious storage space, so you'd have to have a spare drive. Also a new Tablet would, very likely, be a thief magnet.
A second hand laptop which was, essentially, disposable. Would probably still be with you when you return.