do i still have a virus

I used to run a python script from a stranger on discord and I'm afraid that I still have a viruas (the person also after said that it was a virus), but I have reset my pc several times, it can still be that I have a virus?