Blinking underscore in Python

I want to make an input with a blinking underscore like this example (In Python 3.8.2):

What is your name?

And then the underscore goes away:

What is your name?

And back again:

What is your name?

How do i do it?

You are viewing a single comment. View All
Answered by InvisibleOne (3224) [earned 5 cycles]
View Answer

@InvisibleOne thx! Can I use this? I'll credit you.
EDIT: Also, i came up with an improvement.
change this in line 19:
print("> " + currentText),
to this:
and change this in line 24:
print(">_ " + currentText)
into this