You can use the yticks function. The first parameter is the position of the Y axis, and the second parameter is the specific label.
Import? matplotlib.pyplot? As? plt
Import? numpy? As? nameplate
x? =? np.arange(0,6)
y? =? x? *? x
plt.plot(x,y,? marker='o ')
plt.yticks(y,['a ',' b ',' c ',' d ',' e ',' f'])