Here is my code:
print("Make a 20-digit code with numbers 0-9: |___|", end="\r", flush=True)
addDigits = input("Make a 20-digit code with numbers 0-9: |")
More specifically, I am trying to place the cursor like this, so the user types in-between the two |s:
"Make a 20-digit code with numbers 0-9: |(This is where the cursor should be)|"
(I do have import sys at the top, so it isn't that. Any ideas? Thank you.)
cursesbut it will need longer code (to check if it is digit and if there are only 4 items. And it may work only in some terminals.