Fit Method In Python Geeksforgeeks