Swimming

Okay guys I need some advice I have a few more days left of school but I need to swim to pass gym and I have tried to use a tampon and it just isn't working, my friend says it's okay to wear a pad in the pool with shorts over, is that true? I'm not sure I just need help I have to pass!!!