Accuracy Function In Python Practice Question