When using raw_input in python, a user has to put an input and then press enter. Is there a way for me to code something, where the code will prompt several user inputs at the same time and THEN press enter for the code to run?
For example: instead of ...
>>> Name: <prompt> <enter>
>>> Age: <prompt> <enter>
>>> Gender: <prompt> <enter>
it'll have ...
>>>
Name: <prompt>
Age: <prompt>
Gender: <prompt>
<enter>
argparsepackage is good for passing options to a script using command line flags. You could also leverage something like thejsonorconfigparsermodules to ingest these paramters from a file.inputis meant to be very simple and minimal. If you want more advanced user interaction, there are many ways to create a user interface, depending on your target environment. Do you want a text terminal application, a graphical user interface or maybe a web application?