How To Check If A String Ends With A Pattern In Python?

How To Check If A String Ends With A Pattern In Python?