'How can I cause my python program to "sleep" without the sleep function [closed]

I've been asked the question:
Define a second function which, when called, will “sleep” for approximately three seconds, and while doing so will display a “z” on the screen about every ½ a second. Do not use the sleep function to accomplish this task as we have not studies.

I do not know how to do this, please help



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source