Don't go too large on equipment at the beginning because you don't know what you don't know yet.
Buying mask, fins and snorkel should be OK, they're not really big ticket items and the advice above is good.
The second hand market is full of barely used gear from folks who bought it all then didn't dive! Which is very good for those that do...
Best advice here.
Start your class, see what the instructor gives you to try. Learn from the classes what´s good, what's not. Make an instructed decision. There is always time to buy with better background.