Practice Rank Functions In Python