Inactive Tutor answered 05/03/22
The showturtle() and hideturtle() functions don't accept any parameters and don't support time delays. If you want to have a time delay, you'll have to do that yourself. There are different ways of achieving this, and you didn't specify what you want to have happen during the delay, so I'll just present one method. To show the turtle and then have it disappear after a random number of seconds, you can do this:
box.showturtle()
time.sleep(random.randint(1,5))
box.hideturtle()