Show default value for editing on Python input possible?
Posted
by kircheis
on Stack Overflow
See other posts from Stack Overflow
or by kircheis
Published on 2010-03-28T13:51:45Z
Indexed on
2010/03/28
13:53 UTC
Read the original article
Hit count: 136
Is it possible for python to accept input like this:
Folder name: Download
But instead of the user typing Download it is already there as a initial value. If the user wants to edit it as Downloads all he has to do is add a 's' and press enter.
Using normal input command:
folder=input('Folder name: ')
all I can get is a blank prompt:
Folder name:
Is there a simple way to do this that I'm missing?
© Stack Overflow or respective owner