How do you rotate a sprite in pygame?

I am making a game in pygame and I want it so every time the sprite jumps it rotates mid-air and lands on its side. A lot like geometry dash jumping if you have ever played that. How would I do this?