Accuracy Function In Python Programming