join fast respawn servers on the pub and you're good to go. plenty of practice considering noobs and good players all play there.
Don't listen to this. It's probably the slowest way to get better and DM servers do it better and far more controlled with primarily good players rather than some good ones every now and again.
Other than practice of course, how do you get good at this game? I may start playing as scout. (Maybe medic).
Considering you still haven't decided on what class you actually want to get good at, that'd be a start.
Soldiers will want to go on tr_walkway/MGE. Classes like Sniper benefit from tr_walkway as well (and pubbing's actually solid practice as Sniper tbh). I'd recommend going on a DM server (Not MGE servers as it's very unrealistic to what you'll actually encounter in play) for Scout/Demoman/Soldier. Pyro's most useful practice would be learning how to puff+sting (which isn't difficult at all) and going on dodgeball servers to get better at airblasting.
Now for the different ones. Classes like Medic, Engie, Heavy, and Spy rely heavily on knowledge that can only be acquired through guides or lots and lots of playing as those classes. Medic is legitimately all knowledge and application, like knowing when and where to be, awareness, heal priority, etc. Engie is building placement and knowing when to backoff with your buildings, as well as being semi-aware of your surroundings. Heavy is basic aim and positioning, without positioning the Heavy is probably the weakest class in the game as he's a sitting duck for all classes. Spy is also positioning, but the ability to fight using your revolver, as well as some 'advanced' backstabbing techniques (trickstabs), as well as knowing precisely when to strike is what you'd want to improve on. (For these classes, look up guides as they do the best job at teaching what to do)
All of these transition perfectly into competitive TF2 as well as casual TF2 as they work regardless of your situation. These are probably the fastest ways to improve your skill, and of course, all of these still do take time, so PRACTICE.