Can cursor act as a tutor - leading me step by step?

For example, I am learning about creating a square root function.
If I prompt " teach me how to write the square root function using Successive approximation using Newton’s or Heron’s method." - it should not give me the answer, it should lead me step by step.

How can I accomplish this?