R2 Score Function In Python Geeks