What is the use of ! in Python commands?

I’ve also seen its use in previous videos. But I don’t get why it is used here.