Peter learned from sitting with Jesus, but also by making mistakes on his own. What he teaches in this chapter is summarized as:
Point 1 - How to serve the Lord
Point 2 - How not to fall
Point 3 - What to do when the enemy attacks
Use this teaching to do as Peter was asked by Jesus...to feed His sheep!