The document describes an exercise to write a Python function called myfact that calculates the factorial of a number using a for loop. The function should ask the user to input a number, call myfact to calculate the factorial, and print the result to the user.