How To Use Mid Function In Python