Run the wordcount Command (Task)

Your first task is a warm-up exercise designed to give you a feel for the challenge-solving process. It won’t require any significant mental effort, so just relax and enjoy the experience.

Acceptance Criteria

There’s only one acceptance criterion for this task to pass. Your goal is to make the custom wordcount command available in the terminal. Even though it won’t do anything useful at the moment, it should return successfully with a zero exit status code, indicating no errors, and without showing any output.

On Unix-like operating systems, such as macOS and Linux, you can check the last command’s exit status by echoing the special pseudo-variable ($?) in the shell:

Shell
(venv) $ wordcount
(venv) $ echo $?
0

In this case, the wordcount command returns successfully. Otherwise, a non-zero value would typically indicate some kind of error.

Additional Resources

For further clarification or guidance, you can explore these resources:

If you still need more clarity, then move on to the next lesson, where you’ll find a walkthrough of a sample solution with a discussion of the suggested Python tools.

What’s Next?

🕵️‍♂️ Continue to the next lesson to review the sample solution and compare your approach to solving this task.

Become a Member to join the conversation.