pygame transform flip function
#change the degree of rotation degree += 5 if degree > 360: degree = 0. The display.flip function takes the screen surface we created just after the pygame initialization and makes it visible to the user. Thatâs all it does here, simple enough.