How do I \t input=(format)?
I’m able to get my user prompt tabbed when I do this before:
prompt = “\t\t>”
Just want to understand if there is another way to accomplish this directly on the line where I request the users input.
How do I \t input=(format)?
I’m able to get my user prompt tabbed when I do this before:
prompt = “\t\t>”
Just want to understand if there is another way to accomplish this directly on the line where I request the users input.
Can’t you just do answer = input("\t> ")
?
Hey florian, thanks, yes that would work. I just realized it was probably late and a bit of a silly question too.
What I was after was similar to what you posted only using the fstrings:
prompt = ">"
input(f"\t\t{prompt}")