Swimming on my period????

I’m going swimming with my class on Thursday and my period is either starting today or tomorrow. And if I skip it I have to go swimming with the ninth graders!

So I was wondering if I can swim on my period or if I should use a tampon ( which I have never used before )